• 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: do shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: do shell script


  • Subject: RE: do shell script
  • From: "Søren Rehné" <email@hidden>
  • Date: Thu, 7 Feb 2002 01:10:47 +0100
  • Organization: Knowbody ApS

I did a little testing for you.

Try this:

do shell script "/sbin/ping -c 1 10.0.1.1"


Notice the following:
Doing unix commands you don't (i believe) have your standard
configurations available - stuff like path etc.

So if you want to do a unix command, go into the terminal
window and type:
which ping

It will show you where to look for the command.
Use this in your script.

I also include a "-c 1". Read the manual in terminal window.
type :
man ping.

Med Venlig Hilsen / With Kind Regards

Sxren Rehni

--------------------------------------------------------
Work:
E-mail: - mailto:email@hidden
Company WWW: - http://www.knowbody.dk/

Knowbody ApS - Phone: (+45) 7023 7903
Skjoldsgade 11 - Mobile: (+45) 4028 7771
8260 Viby J.
DK - Denmark

Private:
Sxren Rehni
Skjoldsgade 11
8260 Viby J. - Phone: (+45) 8614 1449
DK - Denmark - Mobile: (+45) 4028 7771
E-mail - mailto:email@hidden
Personal WWW - http://www.soerenrehne.dk
--------------------------------------------------------


> -----Original Message-----
> From: email@hidden
> [mailto:email@hidden] On Behalf Of
> John Azevedo
> Sent: 6. februar 2002 15:29
> To: email@hidden
> Subject: do shell script
>
>
> Can someone explain how I can "ping" via AppleScript.
> The script bellow doesn't work.
>
> do shell script "ping 10.0.1.1"
>
> --> zsh: command not found: ping
>
>
>
> TIA
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/ap> plescript-users
>
> Do not post admin requests to the list. They
> will be ignored.
_______________________________________________
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.

  • Follow-Ups:
    • RE: do shell script
      • From: garbanzito <email@hidden>
  • Prev by Date: Re: Files of folder returns 0 ...
  • Next by Date: Re: My Worrisome Lists :-)
  • Previous by thread: Re: Files of folder returns 0 ...
  • Next by thread: RE: do shell script
  • Index(es):
    • Date
    • Thread