LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2009, 08:40 PM   #1
icecubeflower
Member
 
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 304

Rep: Reputation: 33
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.
 
Old 08-23-2009, 09:10 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 08-23-2009, 09:31 PM   #3
icecubeflower
Member
 
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 304

Original Poster
Rep: Reputation: 33
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?
 
Old 08-23-2009, 09:38 PM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
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.
 
Old 08-24-2009, 12:51 AM   #5
icecubeflower
Member
 
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 304

Original Poster
Rep: Reputation: 33
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.
 
Old 08-24-2009, 02:45 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by icecubeflower View Post
How do you get back to fluxbox after ctrl-alt-F2?
Ctrl+Alt+F7
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
be sure to kill a program tanoatlq Linux - General 9 04-25-2008 09:54 PM
how kill a program SciYro Linux - Newbie 5 07-11-2004 05:20 AM
How to kill my program? kewlchen Linux - General 7 08-12-2003 04:40 PM
cannot kill a program Chooco Linux - General 19 07-23-2003 08:01 AM
Kill a program tunedLow Linux - Newbie 3 10-27-2001 03:51 PM


All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration