Re: do shell script
Re: do shell script
- Subject: Re: do shell script
- From: Christopher Nebel <email@hidden>
- Date: Wed, 16 Feb 2005 12:25:05 -0800
On Feb 16, 2005, at 11:47 AM, Andrew Oliver wrote:
On 2/16/05 11:21 AM, "Michelle Steiner" <email@hidden> wrote:
On Feb 16, 2005, at 3:57 AM, Bill Briggs wrote:
It doesn't return an error to the script.
Hmm. It works on my PowerBook. I get an "incorrect password
attempt"
error back from Script Editor.
I figured this out. If you enter a correct password, then when you
subsequently run it with a wrong password, it does not return the
error
until you quit the script and run it again, using a wrong password
the
first time--but if you ever enter the correct password, it will no
longer return the error.
This is more likely to be a timing issue than a 'quit and restart'
fix.
'with administrator privileges' currently uses sudo (see Chris'
recent note), sudo maintains a timeout for each user such that
subsequent 'sudo' commands do not require re-authentication. I'm
guessing that subsequent 'do shell scripts' within that timeout don't
pass the 'incorrect' password since no password is required anyway
(either that or it does pass the password which sudo silently ignores)
By default the timeout is 5 minutes, so you have 5 minutes to do any
other 'with administrator privileges' commands before you need to
enter the password again.
That's correct.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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