• 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: Wed, 16 Feb 2005 16:18:28 -0400

At 11:47 AM -0800 2/16/05, 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.

I think your explanation is the correct one.

- 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: 
 >Re: do shell script (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Emergency notification
  • Next by Date: osascript: CFMessagePort error?
  • Previous by thread: Re: do shell script
  • Next by thread: Re: do shell script
  • Index(es):
    • Date
    • Thread