• 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
Running Script as root using Sudo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running Script as root using Sudo


  • Subject: Running Script as root using Sudo
  • From: Chris Prew <email@hidden>
  • Date: Wed, 27 Feb 2002 08:31:27 -0600

Hi, I9m trying to run an Applescript using the OSAX that allows you to run
terminal commands. I9m trying to figure out a way to run a script while
logged into the OS X box as a standard user; but the script I9m running
needs root access. So I need to run a sudo command in the script.


Has anyone been able to get sudo to run from a script using stdin for the
password (so the script can run unattended and doesn9t need someone to type
in a password)? If so, I9d appreciate the syntax. I can9t seem to make it
work.

Thanks in advance

Chris
_______________________________________________
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: Running Script as root using Sudo
      • From: garbanzito <email@hidden>
  • Prev by Date: Re: opening parent folder....
  • Next by Date: Re: Running Script as root using Sudo
  • Previous by thread: Re: Re: Can I make this work without using Internet Explorer...
  • Next by thread: Re: Running Script as root using Sudo
  • Index(es):
    • Date
    • Thread