Not sure if I understand the full intent, but you may want to take a look at `killall`. -- Sean srinivas rao <iamspl_xxx@yahoo.com> To: kernelnewbies@nl.linux.org Sent by: cc: kernelnewbies-bounce@n Subject: killing a process by its "Name and commandline" arguments l.linux.org 03/24/2002 10:24 AM 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/