[SuSE Linux] killing processes
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. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at <A HREF="http://mail.yahoo.com"><A HREF="http://mail.yahoo.com</A">http://mail.yahoo.com</A</A>> - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
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.
_________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at <A HREF="http://mail.yahoo.com"><A HREF="http://mail.yahoo.com</A">http://mail.yahoo.com</A</A>>
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Use: killall netscape to kill netscape mc On Thu, 03 Sep 1998, you wrote: - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
if you are 100ure your process will have a unique name, you can use something like: ps aux |grep $PROCESSNAME |awk '{print $2}' |xargs kill -9 which will kill all instances of $PROCESSNAME On Thu, 3 Sep 1998, 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.
_________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at <A HREF="http://mail.yahoo.com"><A HREF="http://mail.yahoo.com</A">http://mail.yahoo.com</A</A>>
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
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.
of course, you could have the process write its PID to a file then use something like kill -9 'cat /path/to/process.pid.file' -- michael - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
On Thu, 3 Sep 1998, Michael Galloway wrote:
of course, you could have the process write its PID to a file then use something like kill -9 'cat /path/to/process.pid.file'
may want to switch these with ` - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Hi! Trying to kill the keyboard, mgx@spruce.lsd.ornl.gov produced:
of course, you could have the process write its PID to a file then use something like kill -9 'cat /path/to/process.pid.file'
... but of course you'd use -TERM or -HUP, not -KILL (== -9) so the process could close cleanly with no data loss. -Wolfgang -- PGP 2 welcome: Mail me, subject "send PGP-key". If you've nothing at all to hide, you must be boring. Unsolicited Bulk E-Mails: *You* pay for ads you never wanted. Is our economy _so_ weak we have to tolerate SPAMMERS? I guess not. - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
On Sep 04, 1998, Wolfgang Weisselberg wrote:
... but of course you'd use -TERM or -HUP, not -KILL (== -9) so the process could close cleanly with no data loss.
Well, now that we're on this subject... I've read 'man kill' and 'man killall' and done some 'apropos' but I can't find a doc that tells me: 1. What do the -HUP, -SIG, -TERM etc. arguments _actually_ imply? 2. How do the -number and -XXX arguments correspond; i.e., what -num does -HUP correspond to? A pointer to a doc would be much appreciated. Howard Arons -- Powered by SuSE Linux 5.2 -- kernel 2.0.33 Communications by Mutt 0.93.2 - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
try man 7 signal. -- me Thus Spake: Howard Arons (hlarons@ComCAT.COM):
Well, now that we're on this subject... I've read 'man kill' and 'man killall' and done some 'apropos' but I can't find a doc that tells me: 1. What do the -HUP, -SIG, -TERM etc. arguments _actually_ imply?
2. How do the -number and -XXX arguments correspond; i.e., what -num does -HUP correspond to?
A pointer to a doc would be much appreciated.
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
On Sep 04, 1998, Michael Galloway wrote:
try man 7 signal.
Um, there's no signal or SIGNAL manpage in my installation. I'll try to get the manpage from somewhere and give it a look. Howard Arons -- Powered by SuSE Linux 5.2 -- kernel 2.0.33 Communications by Mutt 0.93.2 - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Hi, On Sat, Sep 05, Howard Arons wrote:
On Sep 04, 1998, Michael Galloway wrote:
try man 7 signal.
Um, there's no signal or SIGNAL manpage in my installation.
Howard Arons -o) Hubert Mantel /\\ _\_v
Install package allman.rpm (all manual pages) - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Hi! Trying to kill the keyboard, hlarons@ComCAT.COM produced:
try man 7 signal. Um, there's no signal or SIGNAL manpage in my installation.
Paket: ldpman -Wolfgang -- PGP 2 welcome: Mail me, subject "send PGP-key". If you've nothing at all to hide, you must be boring. Unsolicited Bulk E-Mails: *You* pay for ads you never wanted. Is our economy _so_ weak we have to tolerate SPAMMERS? I guess not. - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
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
participants (8)
-
hlarons@ComCAT.COM
-
leonmcclatchey@homemail.com
-
mantel@suse.de
-
mclark@csi.coloradosystems.com
-
mgx@spruce.lsd.ornl.gov
-
qgl176@yahoo.com
-
weissel@jupiter.ph-cip.uni-koeln.de
-
zen@toyzworkz.com