Re: New technote for "do shell script"
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.