• 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 "ifconfig -a" ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do Shell Script "ifconfig -a" ?


  • Subject: Re: Do Shell Script "ifconfig -a" ?
  • From: Matthew Smith <email@hidden>
  • Date: Thu, 19 Sep 2002 15:47:24 +1000

on 19/09/2002 09:22, JoePostscript at email@hidden wrote:

> Can someone tell me what is the problem with what
> I'm doing here? I'm trying to use "ifconfig". I use it fine
> through the terminal, like so.
>
> tall app "terminal"
> do script with command "ifconfig -a"
> end tell
>
> However, when trying to use "ifconfig" with do shell
> script I get this message. I must be doing something
> wrong? TIA
>
> "zsh: command not found: ifconfig"

The PATH variable is not defined with the same value as Terminal (tcsh) when
you use do shell script (zsh). You need to give the full path of the
command.

do shell script "/sbin/ifconfig -a"

--
Matthew Smith
_______________________________________________
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: 
 >Do Shell Script "ifconfig -a" ? (From: JoePostscript <email@hidden>)

  • Prev by Date: Re: Script Menu in 10.2.1 corrupts my scripts
  • Next by Date: re: FMP 6.0v3, OS X 10.2 and AppleScript -> Broken
  • Previous by thread: Do Shell Script "ifconfig -a" ?
  • Next by thread: Tell application filepath broken with long folder names
  • Index(es):
    • Date
    • Thread