RE: do shell script and passwords
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.