[slightly OT] using sudo -S via shell
Ken Ray
kray at sonsothunder.com
Sun Nov 20 15:17:41 EST 2005
On 11/20/05 12:50 PM, "Mark Wieder" <mwieder at ahsoftware.net> wrote:
> 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...
Actually it's funny you mention that... it has worked for me with that error
in place, so perhaps the default shell I've been using works just as well as
sh.... anyway, you're right though - it should be "after".
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list