• 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 with administrator privileges & shell commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: do shell script with administrator privileges & shell commands
      • From: garbanzito <email@hidden>
References: 
 >do shell script with administrator privileges & shell commands (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Filmaker container field
  • Next by Date: Re: Manipulating multiple files in arbitrary applications
  • Previous by thread: do shell script with administrator privileges & shell commands
  • Next by thread: Re: do shell script with administrator privileges & shell commands
  • Index(es):
    • Date
    • Thread