You want to use killproc as superuser: killproc SomeProg will kill all the processes with that name. Tom On Sunday 24 March 2002 08:24 am, you wrote: > Hi, > I want to kill a process by its program name and > command line parameter. In my target system, I am > running the multiple instances of userspace > application. These seperate instances are identified > by the argument supplied to that program. > > For example: > /sbin/SomeProg eth0 > /sbin/SomeProg eth1 > etc.. > The SomeProg doesnot keep the multiple instance of its > pid in /var/run file system. It only stores the PID of > the process that is previously spawned. It will > overwrite this value whenever a new instance is > spawned. > > I have tried using killall -9 SomeProg eth0. > This kills all the instances of SomeProg. > Is there any method by which by which i can access the > > i can get the PID of the application, given the > program name and its commandline arguments. > > Please help, > Srinivas Rao.M > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Movies - coverage of the 74th Academy Awards® > http://movies.yahoo.com/ > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/