Re: Do shell script question
Re: Do shell script question
- Subject: Re: Do shell script question
- From: Christopher Nebel <email@hidden>
- Date: Fri, 5 Sep 2003 09:50:16 -0700
On Sep 4, 2003, at 2:12 PM, David Durkee wrote:
The commands I'm sending to do shell script work, it's just that the
AppleScript (or the application running it) hangs, so I don't think
there's a problem with the way the path string is formatted. (The path
is quoted; the backslashes are escape characters for the quote
characters around the path.) If there was, the server wouldn't start
up, and it does.
I just tried writing a shell script for this. When I execute the shell
script from Terminal, it works fine, and when I use do shell script
from an AppleScript on it, it works, but hangs the AppleScript.
"do shell script" blocks until all the child processes return EOF. To
get around this, say
do shell script "command > /dev/null 2>&1 &
See <
http://developer.apple.com/technotes/tn2002/tn2065.html#Section5>.
--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.