• 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
do shell script and passwords
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

do shell script and passwords


  • Subject: do shell script and passwords
  • From: garrett <email@hidden>
  • Date: Fri, 07 Jun 2002 15:40:14 -0500

How do I get feedback from a script that the command sent an incorrect
password?

Here is the script:

set AdminPass to "myPass"
do shell script "/usr/sbin/rawrequest" administrator privileges yes
password AdminPass


something weird is going on... first off, the result returned is empty, even
though the password is purposely set wrong. Even worse, the process is
actually run! I even quit the process in processViewer, and tried the script
again, and sure enough, it launches the process without the correct
password.

Am I missing something? Is my correct password being cached somewhere by
some part of this process (before I tried to create an error trapping
routine for a bad password, I had been using the script with the correct
password).

using os 10.1.5.

-------
garrett
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: do shell script and passwords
      • From: Alex Robinson <email@hidden>
    • Re: do shell script and passwords
      • From: Matthew Stuckwisch <email@hidden>
    • Re: do shell script and passwords
      • From: Dave Balderstone <email@hidden>
  • Prev by Date: Re: [Newbie Q] How to implement toggle switch? (Now: handlers)
  • Next by Date: Re: do shell script and passwords
  • Previous by thread: Re: [Newbie Q] How to implement toggle switch? (Now: handlers)
  • Next by thread: Re: do shell script and passwords
  • Index(es):
    • Date
    • Thread