Re: How to Run a "sudo" Terminal Command
Re: How to Run a "sudo" Terminal Command
- Subject: Re: How to Run a "sudo" Terminal Command
- From: "S. J. Cunningham" <email@hidden>
- Date: Sat, 12 Dec 2015 11:57:41 -0500
On Dec 12, 2015, at 7:20 AM, Dave wrote:
> Hi All,
>
> I’d like to execute a Shell Script with the “sudo” command, e.g.
>
> sudo some-command
>
> If I do this from the terminal it prompts me for my password how can I do this from an AppleScript, ideally I’d like the Standard Mac OS Password Dialog to appear…..
>
> Is this possible?
>
> All the Best
> Dave
I'd like to know how to do it _without_ the dialog. Something like:
do shell script xxx with user ID yyy and password zzz
Steve
------------------
OS X 10.6.8, AppleScript 2.1.2
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden