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

Re: do shell script "sudo -v"


  • Subject: Re: do shell script "sudo -v"
  • From: garbanzito <email@hidden>
  • Date: Sat, 15 Dec 2001 22:44:34 -0700

at 2001 12 14, 15:56 -0600, they whom i call Sean Elfstrom wrote:
Shell "echo 'somePW' | sudo -S somecommand"

I wouldn't recommend using this method with scripting Terminal, because the password will be in plaintext in the title bar and the window, but it should work fine with OSX PowerAddOns or Kinder Shell.


when this exact question came up a few days ago i answered
with this suggestion, which avoids the cleartext password,
but does put it in a file, which is in some ways more
dangerous:

do script with command "sudo -S somecommand <somefilewithyourpassword"

--
steve harley email@hidden


References: 
 >do shell script "sudo -v" (From: "Timothy H. Kaiser, Ph.D." <email@hidden>)
 >Re: do shell script "sudo -v" (From: Sean Elfstrom <email@hidden>)

  • Prev by Date: Re: RA Scripting - Solved!
  • Next by Date: PDF convert
  • Previous by thread: Re: do shell script "sudo -v"
  • Next by thread: Help w/ creator changer script
  • Index(es):
    • Date
    • Thread