[plug] ADSL failover

Jason Nicholls jason at mindsocket.com.au
Wed Aug 22 08:58:43 WST 2001


On Wed, Aug 22, 2001 at 08:44:12AM +0800, Simon Scott wrote:
> 	Actually, wouldnt ping return 0 on success and an error code on
> failure? Can you determine the return value through bash scripting?

[jason at nikita jason] true
[jason at nikita jason] echo $?
0
[jason at nikita jason] false
[jason at nikita jason] echo $?
1


Later,

Jason Nicholls
--------------------------------------------------------------------
Jason Nicholls    icq: 11745841    email: <jason at mindsocket.com.au>
Proprietor                        mobile: 0417 410 811
Mind Socket [web services]          http://www.mindsocket.com.au/
--------------------------------------------------------------------



More information about the plug mailing list