• 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: New technote for "do shell script"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New technote for "do shell script"


  • Subject: Re: New technote for "do shell script"
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 28 Jan 2003 15:47:09 -0800

On Tuesday, January 28, 2003, at 08:48 AM, Doug McNutt wrote:

Does it matter just who one "tells" to execute a shell script?

As far as script behavior goes, in theory, yes; in practice, not particularly.

Child processes like the sh process that "do shell script" creates inherit several attributes from their parent process, i.e., whoever it was that you "told" -- see the man page for execve(2) for all the details. However, most applications never change any of them, so it doesn't make any difference in most cases.

Of course, all the standard caveats about telling other applications to execute scripting addition commands still apply: for instance, your "do shell script" command will block whatever process you told until it returns, which might be considered a bad thing.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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: 
 >Re: New technote for "do shell script" (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: String manip: from AppleScript to shell
  • Next by Date: Re: New technote for "do shell script"
  • Previous by thread: Re: New technote for "do shell script"
  • Next by thread: Photoshop 7, Applying a filter
  • Index(es):
    • Date
    • Thread