On Tue, Aug 12, 2003 at 08:41:01AM -0000, Vidhata Deshpande wrote:
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
try
ping -c1 -w3 202.54.1.30 var=$? echo $var
HTH With regards,