LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   kill fluxbox program (https://www.linuxquestions.org/questions/linux-newbie-8/kill-fluxbox-program-749748/)

icecubeflower 08-23-2009 07:40 PM

kill fluxbox program
 
What if you wrote a bad openGL program and you're running it fullscreen in fluxbox and then it freezes? How do you kill it? I just had to reboot.

In KDE ctrl-alt-esc worked a lot but I'm not sure it would have worked in this case.

Tinkster 08-23-2009 08:10 PM

Hmmm ... if it didn't lock the keyboard you may be able to do a
Alt+F2, pkill -9 appname


Can you still get to a full-screen console when it locks up?
Ctrl+Alt+Fx (x e (1-6))



Cheers,
Tink

icecubeflower 08-23-2009 08:31 PM

I tried a ctrl-alt-F2.

But my program is called project5 and it wouldn't let me kill it. kill didn't recognize project5 as a process. I did ps -e and it listed project5 but for an ID number it just listed a question mark. I don't even know how to kill it.

How do you get back to fluxbox after ctrl-alt-F2? Apparently I'm still in X. runlevel 3 or something?

i92guboj 08-23-2009 08:38 PM

You can kill your program in many ways.

First, you should be looking into binding "xkill" to a key combo. Look at the fluxbox docs to know how to do that, I don't really remember. You could bind xkill to control+alt+esc if you want to have the same combo that you said above you had in kde.

Second, control+alt+F<n> is used to change between different vt's. Usually, most distros come configured to show 6 of them, from F1 to F6. X usually takes the next free vt, so you just need to keep pressing from F1 to F12 until you find in which one X is. By taking a look into /etc/inittab you can find how many VT's are initialized at boot time, if you are even interested in that.

Third, you could do as someone said above, however if the opengl app is really in full screen, or even if it's windowed but the fluxbos policy puts it over the rest of windows, then you are going to have a hard time to get the focus into the alt+f2 dialog, if it's possible at all. I am not too familiar with the flux focus policy though.

Fourth and last, the first number in the ps output is the "process identification number", PID for short, to kill a process you just need to use either kill with the pid or pkill with its name. If the name doesn't work, use the pid, it's unique and should work most times.

icecubeflower 08-23-2009 11:51 PM

Oh oops, those question marks weren't the PID's. I don't know what I was smoking. Actually that's just a figure of speech. I know what I was smoking.

catkin 08-24-2009 01:45 AM

Quote:

Originally Posted by icecubeflower (Post 3654947)
How do you get back to fluxbox after ctrl-alt-F2?

Ctrl+Alt+F7


All times are GMT -5. The time now is 07:35 PM.