Re: do shell script
Re: do shell script
- Subject: Re: do shell script
- From: James Sentman <email@hidden>
- Date: Sun, 7 Jul 2002 17:38:12 -0400
Sorry Jon, I should have mentioned...
I have tried backgrouding the process by appending " &" to the command.
I have also tried putting it in "with timeout...end timeout" clause.
I even tried putting the command in a shell script and then just
calling it in the "do shell script".
Unfortunately, the problem remains. When AppleScript tries to
execute either the start or stop commands to fmserverd, AppleScript
hangs until fmserverd is no longer running.
I have no idea if this will help with an applescript started shell,
but it does apply to other languages. I've noticed that you cannot
detach some shell commands unless you redirect stdout to somewhere.
Try adding this to the end of the command line:
" > /dev/null &"
and see if that allows it to detach properly.
Let me know what happens, one way or the other.
Thanks,
James
--
_____________________________________________________________________________
James Sentman <email@hidden>
http://www.sentman.com
Enterprise server monitoring for Mac OS X:
http://whistleblower.sentman.com
_______________________________________________
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.