Hi Ken,
Here is what I do:
put "#!/bin/sh" & cr into tScript put "pw=" & tPassword & cr after tScript put "echo $pw | sudo -S " & tCommand & cr after tScript get shell(tScript)
where tPassword contains my usual login password (I am an admin user)
and tCommand contains the terminal command that needs to be run using sudo.
This has been asked before, so perhaps you could include it in your wonderful collection of tips?
Cheers, Sarah
On 25 Jun 2004, at 5:17 am, Ken Ray wrote:
I'm in a situation where there's a process running that I need to kill (OS X
10.3). If I do it through the terminal with 'sudo kill -9 <pid>', it asks me
for the password in the terminal, and after I've entered it, it is killed. I
need to move that functionality into a Rev stack and sending the 'sudo kill'
through shell() is a no-brainer, but how to I send the password along with
it so that it can do everything I was doing in the terminal?
Thanks for anyone's help,
Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
