• 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: on "do shell script"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Non Compulsory Parameters & a Null Constant ?
      • From: Adam Hinshaw <email@hidden>
  • Prev by Date: Re: applescript-users digest, Vol 3 #1332 - 17 msgs
  • Next by Date: Non Compulsory Parameters & a Null Constant ?
  • Previous by thread: on "do shell script"
  • Next by thread: Non Compulsory Parameters & a Null Constant ?
  • Index(es):
    • Date
    • Thread