#!/usr/bin/expect -f

# NTP Expect module for sawdog
# You need ntpdate for this.

set env(TERM) vt100

set timeout 10
match_max 100000

spawn ntpdate $argv
expect "adjust" {
  exit 0
} "suitable" {
  exit 2
}
close
exit 1
  
