• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 'sh: ping: command not found' error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'sh: ping: command not found' error


  • Subject: Re: 'sh: ping: command not found' error
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 18 Feb 2003 09:45:19 -0800

On Tuesday, February 18, 2003, at 06:59 AM, martin wrote:

...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" ... .

I'd like to use this syntax and if anyone would indicate why I'm having this problem I would be grateful.

See "do shell script in AppleScript" at <http://developer.apple.com/technotes/tn2002/tn2065.html>, in particular the first question. (Short answer: use /sbin/ping, not just ping.)


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

References: 
 >'sh: ping: command not found' error (From: martin <email@hidden>)

  • Prev by Date: Re: Script Printing with MS Word?
  • Next by Date: Safari and system AppleScript menu
  • Previous by thread: 'sh: ping: command not found' error
  • Next by thread: Re: 'sh: ping: command not found' error
  • Index(es):
    • Date
    • Thread