Date: Tue, 1 Oct 2002 12:56:31 -0400 (EDT) From: Stephen Hovey <shovey@buffnet.net> To: Vinod <geekvinod@yahoo.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: killing an application through code Message-ID: <Pine.BSF.4.05.10210011256150.440-100000@buffnet11.buffnet.net> In-Reply-To: <20021001165532.97187.qmail@web21109.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
If there is only 1 or you wanna kill whatever there is killall realplay On Tue, 1 Oct 2002, Vinod wrote: > 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 > 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?Pine.BSF.4.05.10210011256150.440-100000>