Re: killing an application through code

2002-10-04 Thread Oliver Fromme
Cliff Sarginson <[EMAIL PROTECTED]> wrote: > On Fri, Oct 04, 2002 at 04:31:49PM +0200, Oliver Fromme wrote: > > He was asking for C code. Well, in C, the easiest way > > is probably to go through the procfs(5) filesystem to > > find the PID and then use the kill(2) system call. This > > isn

Re: killing an application through code

2002-10-04 Thread Cliff Sarginson
On Fri, Oct 04, 2002 at 04:31:49PM +0200, Oliver Fromme wrote: > Mike Hogsett <[EMAIL PROTECTED]> wrote: > > > > > Can anyone tell me how i can kill an application > > > process through a piece of C code? > > > > man killall > > He was asking for C code. Well, in C, the easiest way > is p

Re: killing an application through code

2002-10-04 Thread Oliver Fromme
Mike Hogsett <[EMAIL PROTECTED]> wrote: > > > Can anyone tell me how i can kill an application > > process through a piece of C code? > > man killall He was asking for C code. Well, in C, the easiest way is probably to go through the procfs(5) filesystem to find the PID and then use the k

Re: killing an application through code

2002-10-01 Thread Mike Hogsett
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 ex

Re: killing an application through code

2002-10-01 Thread Stephen Hovey
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-

killing an application through code

2002-10-01 Thread Vinod
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 'realpl