Re: do shell script with administrator privileges & shell commands
Re: do shell script with administrator privileges & shell commands
- Subject: Re: do shell script with administrator privileges & shell commands
- From: John W Baxter <email@hidden>
- Date: Tue, 13 Aug 2002 22:45:50 -0700
At 16:15 -0700 8/13/2002, Chris Espinosa wrote:
>
2) Environment variables that are set in your user login (like your
>
$PATH) are not pre-set for 'do shell script', so you may need to
>
specify explicit paths for some commands (like those in
>
/Developer/Tools).
To learn where a command is, do (starting in your default shell: tcsh
unless you've changed it):
sh
which nameofcommand
The sh puts you into the shell you'll be using
The which looks around to see which file would be executed if you issue
nameofcommand as a command (in some shells, which reports that a command is
a shell built in or an alias, if it is).
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
Will Retrospect be updated before there's an update to be installed into 10.2?
_______________________________________________
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.