"Fossies" - the Fresh Open Source Software Archive

Member "sawdog-2.4/services/ntp" (29 May 2006, 226 Bytes) of package /linux/privat/old/sawdog-2.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/expect -f
    2 
    3 # NTP Expect module for sawdog
    4 # You need ntpdate for this.
    5 
    6 set env(TERM) vt100
    7 
    8 set timeout 10
    9 match_max 100000
   10 
   11 spawn ntpdate $argv
   12 expect "adjust" {
   13   exit 0
   14 } "suitable" {
   15   exit 2
   16 }
   17 close
   18 exit 1
   19