Re: bash/rdate exit code mystery

2000-06-22 Thread Anthony E. Greene
Bret Hughes wrote: > the following should work: > > #!/bin/bash > if [ `rdate -s timeserver` ] ; then# make sure these are backquotes > echo Success > else > echo Failure > fi That worked! Thanks, -- Anthony E. Greene <[EMAIL PROTECTED]> PGP Key: 0x6C

Re: bash/rdate exit code mystery

2000-06-21 Thread Bret Hughes
"Anthony E. Greene" wrote: > 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

Re: bash/rdate exit code mystery

2000-06-21 Thread Hal Burgiss
On Thu, Jun 22, 2000 at 01:05:05AM +0200, Anthony E. Greene wrote: > 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 th