Date: Tue, 1 Oct 2002 09:55:32 -0700 (PDT) From: Vinod <geekvinod@yahoo.com> To: freebsd-questions@freebsd.org Subject: killing an application through code Message-ID: <20021001165532.97187.qmail@web21109.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
Can anyone tell me how i can kill an application process through a piece of C code? i have the realplayer application,which has to be closed manually with a mouse or using "ctrl-C" or using "kill pid". But how can i kill it through a piece of code? one way is to execute "ps" and then grep 'realplay' from it and get the pid and kill it.Isn't there any other way i can do this? isn't there something which kills from command name like 'kill realplay'? Thanks in advance, Vinod __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021001165532.97187.qmail>