Re: Do Shell Script "ifconfig -a" ?
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.