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,
-- 
--Dinesh Shah :-)
[EMAIL PROTECTED]
+91-98213-11906
+91-22-56919423

-- 
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to