Hello Devdas.... Thanks for the help... but I want to check the exit code.... How can I access the exit code and assign the exit code value to a variable. I tried using the command var=`ping -c1 -w3 202.54.1.30` echo $var
This still outputs the regulr ping output | if my eth crd is down...it still o/p's "connect : Network is unreachable" directly to the monitor,without assigning the Exit Code value to the variable. Vidhata
Foundation of a good theory is to invent it and keep it open for questioning. ___________________________________________________ Meet your old school or college friends from 1 Million + database... Click here to reunite www.batchmates.com/rediff.asp