• 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
sudoing into root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sudoing into root


  • Subject: sudoing into root
  • From: Gnarlodious <email@hidden>
  • Date: Sun, 23 May 2004 00:51:15 -0600

I can do this in Terminal:

sudo -s
gzip -r /System/Library/StartupItems/mDNSResponder >
/System/Library/StartupItems/mDNSResponder.gz

Can you?

But I can't do it in Applescript:

do shell script "sudo -s" with administrator privileges
do shell script "gzip -r /System/Library/StartupItems/mDNSResponder >
mDNSResponder.gz"

-- > /bin/bash: line 1: password: command not found

What am I doing wrong?

-- Gnarlie
_______________________________________________
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: sudoing into root
      • From: Axel Luttgens <email@hidden>
    • Re: sudoing into root
      • From: "John C. Welch" <email@hidden>
    • Re: sudoing into root
      • From: Graff <email@hidden>
  • Prev by Date: Re: Phone dialing via modem
  • Next by Date: Re: Unsafe handlers revisited - Now Fixed
  • Previous by thread: Re: Phone dialing via modem
  • Next by thread: Re: sudoing into root
  • Index(es):
    • Date
    • Thread