Re: on "do shell script"
Re: on "do shell script"
- Subject: Re: on "do shell script"
- From: Chris Janton <email@hidden>
- Date: Tue, 11 Feb 2003 18:29:41 -0700
do shell script "sudo" & " -s" password p with administrator privileges
--works correctly, whereas the instruction --
do shell script "sudo -s" password p with administrator privileges
-- returns the error "command p not found."
This doesn't make sense to me. There's no command for "sudo" to
execute...
This makes sense to me
set p to "mypassword"
do shell script "ls -al /private/var/spool/clientmqueue" password p
with administrator privileges
"sudo" effectively gives you administrator privileges, as does
password p with administrator privileges
Or maybe I'm just thoroughly confused...
8)
----------------------------------
Chris Janton - face at CentosPrime dot COM
Netminder for Opus1.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.