Q.G. Lewis wrote:
Can anyone tell me how I can kill a process without using its pid. I would like to use something a little more fixed to that particular process. PID's change everytime a process is started and I am going to be using automated scripts to kill certain processes.
Actually, you'd still have to determine the pid of the process to kill, but that is fairly easy as most processesdo state what there pid is in /var/run/"process.pid". I use that method when I'm using dial-on-demand, and need to reboot into os/2. About a half hour before the autoreboot, I stop fetchmail, and then I stop the dial-on-demand with a script called "stopnet". This script contains a test to determine which ppp is active, then kill the active ppp (My better half sometimes also uses "startnet" which is a script that activates the internet connection on a single connection basis. So along these lines, when it is time for "dial-on-demand" to start, it checks to see if ppp is active, and if it is, it kills it:-) But in each of these instances, a test is made to see what the process pid is, and if it is killed, it is killed via the pid:-) -- cya l8r Leon McClatchey leonmcclatchey@homemail.com Linux User 78912 (Linux Box) - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e