Kill a process in OS X?

MisterX b.xavier at internet.lu
Thu Jun 24 15:35:21 EDT 2004


dont know much about osx shells but this should work

do a shell script like

put "su root p:******"&cr & "kill -9 <pid>"
get shell(it)

su logs you in as superuser... you must know the root
pw though...

X

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com]On Behalf Of Ken Ray
> Sent: Thursday, June 24, 2004 19:49
> To: 'How to use Revolution'
> Subject: Kill a process in OS X?
>
>
> 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: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list