How do I kill a process from the command line?
Hey everyone,
I'm slowly going insane thanks to my Unix incompetence. I downloaded SpazProX to give it a whirl because on their web site they allude to being able to take screenshots of DVDs (which I found out it can't do), anwyay, the thing is still running and I can't log out or reboot and I need to kill the process...
So, I went to the command line and typed in TOP, found out Snapz was PID # 492. So far so good. Then I typed in "kill 492", nothing happens and Snapz keeps on running. So I type in "kill [492]" and I get "kill: No match." Gaa! So I'm out of ideas and I'm afraid of melting my computer via the command line (I'm one of those fools who never backs anything up) and I need help!
Please! Tell me the blatantly obvious thing I'm missing. I'd greatly appreciate it!
A very-new-to-Unix (except for the GUI version we had at work),
Ybot
[ 01-31-2002: Message edited by: Ybot ]</p>
I'm slowly going insane thanks to my Unix incompetence. I downloaded SpazProX to give it a whirl because on their web site they allude to being able to take screenshots of DVDs (which I found out it can't do), anwyay, the thing is still running and I can't log out or reboot and I need to kill the process...
So, I went to the command line and typed in TOP, found out Snapz was PID # 492. So far so good. Then I typed in "kill 492", nothing happens and Snapz keeps on running. So I type in "kill [492]" and I get "kill: No match." Gaa! So I'm out of ideas and I'm afraid of melting my computer via the command line (I'm one of those fools who never backs anything up) and I need help!
Please! Tell me the blatantly obvious thing I'm missing. I'd greatly appreciate it!
A very-new-to-Unix (except for the GUI version we had at work),
Ybot
[ 01-31-2002: Message edited by: Ybot ]</p>
Comments
That should do it.
> Killall -9 spazprox
> Kill -SIGTERM [pid]
Also, you may not be able to kill a running proces if you are not the owner. If the owner is somthing other than what you're logged in as, log in as root, and then:
> su [process owner]
> kill [pid]
> exit
Hope this helps...
[ 02-01-2002: Message edited by: Composer ]</p>
FYI, the DVD screen capture works only with nVidia graphic cards.
>man ps
>man top
>man kill
READ THE MAN PAGES READ THE MAN PAGES
ps -ax | grep -i **PROCESS NAME HERE**
kill pid from above command
--Mike
As for nVidia cards being the only ones capable of capturing DVD screenshots: That sucks! Well, once I can afford a new iMac my problem should be solved then.
-Y