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

RE: do shell script and passwords


  • Subject: RE: do shell script and passwords
  • From: Daisy Whitman <email@hidden>
  • Date: Fri, 7 Jun 2002 22:27:30 +0100 (BST)

i have no idea what your rawrequest does - but you
can check the password before with this script:

set myPassword to "..."
set myresult to "wrong"
try
set myresult to (do shell script "sudo -v"
password myPassword with administrator
privileges)
end try

if myresult is equal to "wrong" then
-- the password was wrong
else
-- the password is ok
end if

Daisy

=====
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
_______________________________________________
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: garbanzito <email@hidden>
  • Prev by Date: Re: do shell script and passwords
  • Next by Date: Re: applescript-users digest, Vol 3 #535 - 17 msgs
  • Previous by thread: Re: do shell script and passwords
  • Next by thread: RE: do shell script and passwords
  • Index(es):
    • Date
    • Thread