Re: do shell script "sudo -v"
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