Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell hanging




On Mar 22, 2007, at 15:23, Mark J. Reed wrote:

I believe you need to disconnect stdin as well as stdout and stderr.
That is, add a "</dev/null" as well.


On 3/22/07, deivy petrescu <email@hidden> wrote:

-----snip----> 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
 _______________________________________________
Mark J. Reed <email@hidden>


Hi Mark!

According to <http://developer.apple.com/technotes/tn2002/ tn2065.html> you don't.



Deivy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: do shell hanging (From: Stan Cleveland <email@hidden>)
 >Re: do shell hanging (From: deivy petrescu <email@hidden>)
 >Re: do shell hanging (From: "Mark J. Reed" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.