On 11/19/05 9:02 AM, "Ton Kuypers" <[EMAIL PROTECTED]> wrote:

> - How do I send the password in one line with the sudo command,
> because I can't seem to get this working from within the Terminal app.

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)


HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to