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 3/22/07 9:41 AM, "Todd Geist" <email@hidden> wrote:

> Does anybody have any ideas about what is happening?

Does this work?

property tmpfile : "/tmp/execme"
do shell script "pwd" with administrator privileges
set theShellScript to "sudo /Library/StartupItems/Nleac/Nleac start"
do shell script "echo " & quoted form of theShellScript & " > " & tmpfile
do shell script "chmod +x" & space & tmpfile
do shell script tmpfile & space & "> /dev/null 2>&1  &" with administrator privileges
-- 


Laine Lee
 _______________________________________________
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



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.