Date: Tue, 01 Oct 2002 10:02:42 -0700 From: Mike Hogsett <hogsett@csl.sri.com> To: Vinod <geekvinod@yahoo.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: killing an application through code Message-ID: <200210011702.g91H2gZN051898@axp.csl.sri.com> In-Reply-To: Message from Vinod <geekvinod@yahoo.com> of "Tue, 01 Oct 2002 09:55:32 PDT." <20021001165532.97187.qmail@web21109.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
man killall > 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?200210011702.g91H2gZN051898>