Date: Wed, 30 May 2001 11:30:20 +0300 From: Veaceslav Revutchi <sl@zeus.dnt.md> To: freebsd-questions@freebsd.org Subject: ping result val. question Message-ID: <20010530113020.A74532@zeus.dnt.md>
next in thread | raw e-mail | index | archive | help
Hi I am confused as to why I get different return values to a ping if run o a command line vs crontab. Here is a small script: #!/bin/sh ping -c 2 somehost.somedomain.com > /dev/null echo $? >> /var/log/ping.log Now if I run it on command line I get a normal result code described in the ping man page and sysexits.h. If I run it from crontab I get a 127 res. val. no matter if the ping was succesful or not. Can someone explain this behaviour please. thanks slava To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010530113020.A74532>