Re: do shell hanging
Re: do shell hanging
- Subject: Re: do shell hanging
- From: deivy petrescu <email@hidden>
- Date: Thu, 22 Mar 2007 13:21:57 -0400
On Mar 22, 2007, at 13:07, Stan Cleveland wrote:
On 3/22/07 9:08 AM, Mark J. Reed wrote:
Hm. Then I'm out of ideas, I'm afraid. I thought maybe sudo was
stuck
waiting for a password or something...
It is stuck waiting for a password (and your account name). Try this:
No, it would prompt you for the password.
set s to "/Library/StartupItems/Nleac/Nleac start"
set r to do shell script s user name "userid" password "password" with
administrator privileges
Stan C.
I am not familiar with Nleac, but I am assuming that "/Library/
StartupItems/Nleac/Nleac start" starts a process and you do not care
for the output.
As Mr. Nebel repeatedly pointed out, the correct way to issue this
command is:
<script>
set s to "/Library/StartupItems/Nleac/Nleac start > /dev/null 2>&1 &"
set r to do shell script s user name "userid" password "password"
with administrator privileges
</script>
This will launch Nleac running in the background without holding the
script until the process ends.
Deivy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden