I have a printing process going on that I'd like to stop, say a wrong date range in gnu cash for ex. I see the process in gtop, complete with PID. I tried "kill pid (pid#) and I get "no such process" What is the correct way, or a way to do this... Thank you for your time.. Lee
lee wrote:
I have a printing process going on that I'd like to stop, say a wrong date range in gnu cash for ex. I see the process in gtop, complete with PID.
I tried "kill pid (pid#) and I get "no such process"
What is the correct way, or a way to do this...
Thank you for your time..
Lee
man kill shows- kill -signal pid so- kill -9 1 Will kill init.. You probably dont want to do that =) Make sure you know your signals, kill with 15 first then 9 if he still wont die.. Jim
-----Original Message-----
From: Jim Bonnet
lee wrote:
I have a printing process going on that I'd like to stop, say a wrong date range in gnu cash for ex. I see the process in gtop, complete with PID.
I tried "kill pid (pid#) and I get "no such process"
What is the correct way, or a way to do this...
Thank you for your time..
Lee
man kill shows- kill -signal pid
so-
kill -9 1
Will kill init.. You probably dont want to do that =)
Make sure you know your signals, kill with 15 first then 9 if he still wont die..
Jim
I think you missed his point, the part about "no such process". This may mean that the process completed just before you issued the kill command. A more proper way to stop a print process, if you are using cups, is to use lpstat -o to get a list of print jobs running and then "cancel" the print job, IE cancel laser-001. Using kill may shut down the printer spooler and create other problems. Ken
On Fri, 29 Aug 2003 15:07:57 -0400
lee
I have a printing process going on that I'd like to stop, say a wrong date range in gnu cash for ex. I see the process in gtop, complete with PID.
Why do you want to use kill? You should use lprm instead. Charles -- There are no threads in a.b.p.erotica, so there's no gain in using a threaded news reader. (Unknown source)
On Fri, 29 Aug 2003 15:07:57 -0400
lee
What is the correct way, or a way to do this...
Forgot to add. To get a list of running jobs, use lpq. CHarles -- if (argc > 1 && strcmp(argv[1], "-advice") == 0) { printf("Don't Panic!\n"); exit(42); } (Arnold Robbins in the LJ of February '95, describing RCS)
participants (4)
-
Charles Philip Chan
-
Jim Bonnet
-
Ken Schneider
-
lee