I have a small script that runs rdate and reports success or failure:

#!/bin/bash
if rdate -s timeserver; then
  echo Success
else
  echo Failure
fi


If the network connectivity is down between my box and the time server,
rdate reports an error (as it should) but the script still reports
success. What am I doing wrong?

Tony
-- 
Anthony E. Greene <[EMAIL PROTECTED]> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
Linux: The choice of a GNU generation. <http://www.linux.org/>



-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to