'sh: ping: command not found' error
'sh: ping: command not found' error
- Subject: 'sh: ping: command not found' error
- From: martin <email@hidden>
- Date: Tue, 18 Feb 2003 06:59:35 -0800
A script that runs in script editor and runs as a cron command from the
'Cronnix' run command menu selection returns an error when it runs
unattended.
I have a dialup connection on a gateway machine running IPNetRouter. I
created my script to initiate a connection on the remote machine and then
delay until the connection is completed before getting and sending mail.
Initially I started with a 'ping' command in a tell application
'Terminal' block. That worked but was annoying when it ran while I was
working. In an attempt to improve the process I asked for suggestions and
one reply said that I could simply replace the tell block with a 'do
shell script' entry.
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.
I'd like to use this syntax and if anyone would indicate why I'm having
this problem I would be grateful.
Martin
_______________________________________________
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.