Re: do shell script
Re: do shell script
- Subject: Re: do shell script
- From: Bill Briggs <email@hidden>
- Date: Tue, 15 Feb 2005 19:11:31 -0400
At 1:41 PM -0700 2/15/05, Michelle Steiner wrote:
On Feb 15, 2005, at 1:32 PM, Bill Briggs wrote:
At 12:45 PM -0700 2/15/05, Michelle Steiner wrote:
How do you include the admin password in do shell script?
For instance, this requires a password:
do shell script "sudo pmset -a ams 0"
If you include sudo in the string handed to do shell script, and
you also include ' with administrator privileges password
"supersecret" ' you may find the process with hang your Script
Editor. I doesn't do it all the time on my Mac, but if the shell
script is one that spawns a child shell it always does.
Do you mean that including "sudo" in the shell script and adding
"with administrator privileges is redundant, and that one or the
other can be eliminated?
As Steve already replied. (Sorry for the delay in replying. I have
been in a lab and at meetings since that last post.)
- web
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden