• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: do shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >do shell script (From: Michelle Steiner <email@hidden>)
 >Re: do shell script (From: Bill Briggs <email@hidden>)
 >Re: do shell script (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: text to .jpg
  • Next by Date: Re: do shell script
  • Previous by thread: Re: Quark 6.5 Page Name of Group Items
  • Next by thread: Re: do shell script
  • Index(es):
    • Date
    • Thread