[slightly OT] using sudo -S via shell
Mark Wieder
mwieder at ahsoftware.net
Sun Nov 20 13:50:56 EST 2005
Ken-
Saturday, November 19, 2005, 11:01:52 AM, you wrote:
> Here's how... in this case I'm using sudo to kill a process (the id of which
> is in tPID):
> put "#!/bin/sh" & cr into tScript
> put "pw="&tPassword & cr into tScript
> put "echo $pw | sudo -S kill -9" && tPID & cr after tScript
> get shell(tScript)
And, obviously, that second line should say "after" tScript...
--
-Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list