Re: do shell script
Re: do shell script
- Subject: Re: do shell script
- From: Bill Briggs <email@hidden>
- Date: Tue, 15 Feb 2005 16:32:27 -0400
Title: Re: do shell script
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.
- 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