LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices



Reply
 
Search this Thread
Old 10-09-2003, 09:29 PM   #1
TallAmericano
LQ Newbie
 
Registered: Sep 2003
Location: Edmonton, AB, Canada
Distribution: SuSE Linux Prof. 9.3
Posts: 25

Rep: Reputation: 15
Unhappy some applications (games) won't close down


Certain games like Frozen-Bubble or PySol card games will not close or shut down when either clicking on the x, Alt-F4, ESC...
What's happening? I usually end up logging out and back in to get rid of them.
Using MDK 9.1, KDE desktop.
 
Old 10-10-2003, 12:08 AM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
if you can physically get out of the game, just open up an xterm and search for the process identification number (PID) and just kill it:

So if you wanted to end PySol:

ps -ef | grep PySol

-that should show you a PID number (say 1500 for this example)
-then just kill it by:

kill -9 1500
 
Old 10-10-2003, 12:31 AM   #3
TallAmericano
LQ Newbie
 
Registered: Sep 2003
Location: Edmonton, AB, Canada
Distribution: SuSE Linux Prof. 9.3
Posts: 25

Original Poster
Rep: Reputation: 15
Ok... I typed what you said in Xterm and here are the results:
4440 4409 0 22:25 pts/1 00:00:00 grep PySol

(I know, 22:25 is the time, but what is the id...4440 or 4409 or what?)

Thanks...

 
Old 10-10-2003, 01:06 AM   #4
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
Code:
[root@omicron root]# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Sep13 ?        00:00:06 init
root         2     1  0 Sep13 ?        00:00:00 [keventd]
So it's the first # (PID) that you want to kill.
 
Old 10-10-2003, 01:14 AM   #5
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
Now that I looked at that, the output you posted is actually the process info for the grep command your searching with, not the program itself. My guess is that it's running under a differnet name than PySol.

Next time you go to run it try some thing like this:

Before you run do:
ps -ef > before.txt

Then start the program and do:
ps-ef > after.txt

Then do:
diff before.txt after.txt

The output of that will give you what processes are started when you invoke that program. The diff command just compares the two before and after files and tells you what's diff(ernet)
 
Old 10-10-2003, 02:55 AM   #6
TallAmericano
LQ Newbie
 
Registered: Sep 2003
Location: Edmonton, AB, Canada
Distribution: SuSE Linux Prof. 9.3
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks Capt. I couldn't get it to work like you said, but after googling around, I found this simple solution:
killall -9 Frozen-Bubble
(Frozen-Bubble is the name of the arcade game that always "froze").
 
Old 10-10-2003, 02:56 AM   #7
subzero0
Member
 
Registered: Aug 2003
Location: NY
Distribution: Mandrake
Posts: 36

Rep: Reputation: 15
If you are running KDE you could use the CTRL+ESC to get to the KDE process viewer look for the name of the application you want to kill, sometimes there are more than one processess for the app, select it and click on kill.

Alternatively, if your in X, you could XKill the app by running the program xkill or using CTRL+ALT+ESC, then click on the program you want to close.

You can also kill apps from the command line which is what your learning from Capt right now.
 
  


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
KDE applications lost their close buttons after upgrade Mrcdm Debian 6 01-14-2005 12:01 PM
how to close KDE and run my games UberNo0ber Linux - Games 4 07-04-2004 08:37 PM
Applications close automatically, hardware issue Balkman Linux - Hardware 6 04-20-2004 11:44 AM
Who is Knowing about daemon applications and how to develop these applications? ms_890 Linux - Software 0 04-14-2004 03:04 AM
KDE probleme with launching opengl applications/games in Mandrake 9.1 Tairlac Linux - Software 0 10-25-2003 07:57 AM


All times are GMT -5. The time now is 01:30 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration