Re: 'sh: ping: command not found' error
Re: 'sh: ping: command not found' error
- Subject: Re: 'sh: ping: command not found' error
- From: John Delacour <email@hidden>
- Date: Wed, 19 Feb 2003 18:17:28 +0000
- Mac-eudora-version: 6.0a6
At 6:59 am -0800 18/2/03, martin wrote:
Anyway, the do shell script "ping -c 3 216.190.188.1" entry returns an
error, but it only seems to do this when it is run by cron - in
unattended mode. The error is "sh: ping: command not found" and the
dialogue box offers an edit and quit button. Edit opens the script in
script editor.
It works fine here:
do shell script "ping -c 3 216.190.188.1"
"PING 216.190.188.1 (216.190.188.1): 56 data bytes
64 bytes from 216.190.188.1: icmp_seq=0 ttl=44 time=184.947 ms
64 bytes from 216.190.188.1: icmp_seq=1 ttl=44 time=201.767 ms
64 bytes from 216.190.188.1: icmp_seq=2 ttl=44 time=212.55 ms
--- 216.190.188.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 184.947/199.754/212.55 ms"
I'd like to use this syntax and if anyone would indicate why I'm having
this problem I would be grateful.
It should not be necessary to give the full path, as others have
suggested, since
bash-2.05a$ echo $PATH
should give at least:
/bin:/sbin:/usr/bin:/usr/sbin
JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.