• 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'-bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'do shell script'-bug?


  • Subject: Re: 'do shell script'-bug?
  • From: garbanzito <email@hidden>
  • Date: Sat, 12 Jan 2002 21:35:05 -0700

at 2002 01 11, 23:09 -0800, they whom i call Christopher Nebel wrote:
This is not a bug, but it's also not well documented.

When you tell Terminal to do something, it does it using your preferred shell (tcsh, unless you've changed it) and complete login environment. When you use "do shell script", it always uses sh, and some environment bits are different.

helpful information, but in actuality it doesn't even use sh
-- it looks like it uses execv or similar to execute the
command (the limited path, /usr/bin:/bin:~, is consistent
with this; "do shell script" is a bit of a misnomer).

analyze the output of

ps -auxwoppid

and note that the ps command you've just run is run by
root, (though whoami returns your user name), and that the
parent process (PPID) is the Script Editor (or similar).
there is no shell involved.

also notable is the fact that the process is run connected to /.

--
steve harley email@hidden


References: 
 >Re: 'do shell script'-bug? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Need rope for SOAP
  • Next by Date: Re: Little Baby Steps
  • Previous by thread: Re: 'do shell script'-bug?
  • Next by thread: AppleScript Logo
  • Index(es):
    • Date
    • Thread