• 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: 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.

References: 
 >Re: Minimized of collapsed of windows (From: John Delacour <email@hidden>)
 >'sh: ping: command not found' error (From: martin <email@hidden>)

  • Prev by Date: Re: How to tell frontmost app from Script Menu?
  • Next by Date: Sorting Lists by multiple criteria
  • Previous by thread: Re: 'sh: ping: command not found' error
  • Next by thread: Distribute applet "simulating" app (OS X)
  • Index(es):
    • Date
    • Thread