LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-03-2003, 10:41 PM   #1
yangyiqi
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
How can I terminate an application?


Sorry to bother you guys with this newbie question, but I have searched this site (BTW, indeed a wonderful place to get help!) with all kinds of phrases like "terminate an application" but got nothing.

My new version of Mozilla (1.4) got frozen and I forgot how to terminate it without rebooting - I know this is where Linux beats Windows ;-) What is the command I should use? I tried "killall Mozilla" and "killall mozilla". Neither works.

Some additional background:

I am running Redhat 9. Was trying to upgrade the installed Mozilla 1.2.1 to the new v1.4. I downloaded the RPM and ran with "rpm -Uvh xxxxx" but got dependency errors. As a newbie, I uninstalled everything that relies on Mozilla 1.2.1. Could eventually install Mozilla 1.4 and it ran sort of fine. Will bother you guys with more related questions later.

When I clicked a link trying to download an rpm (kdebindings), my Mozilla 1.4 hang.
 
Old 07-03-2003, 10:59 PM   #2
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
Looking at ps -aux will give you a processes PID. Typing "kill [pid]" will kill a program.

Though, like you said. using "killall [processname]" works as well. I dont know why you were having problems. Could be two things:

1. You dont have permission, ie. its a process created by root, and you tried to kill it as a regular user.

2. Thats not the process name. Try "mozilla-1.4"
 
Old 07-03-2003, 11:18 PM   #3
yangyiqi
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your help. But my "ps" listing doesn't seem to have mozilla.

[root@FFCHN-Linux1 Mozilla]# ps -aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1368 64 ? S Jul02 0:04 init
root 2 0.0 0.0 0 0 ? SW Jul02 0:00 [keventd]
root 3 0.0 0.0 0 0 ? SW Jul02 0:00 [kapmd]
root 4 0.0 0.0 0 0 ? SWN Jul02 0:00 [ksoftirqd_CPU0]
root 9 0.0 0.0 0 0 ? SW Jul02 0:00 [bdflush]
root 5 0.0 0.0 0 0 ? SW Jul02 0:00 [kswapd]
root 6 0.0 0.0 0 0 ? SW Jul02 0:00 [kscand/DMA]
root 7 0.0 0.0 0 0 ? SW Jul02 1:18 [kscand/Normal]
root 8 0.0 0.0 0 0 ? SW Jul02 0:00 [kscand/HighMem]
root 10 0.0 0.0 0 0 ? SW Jul02 0:00 [kupdated]
root 11 0.0 0.0 0 0 ? SW Jul02 0:00 [mdrecoveryd]
root 15 0.0 0.0 0 0 ? SW Jul02 0:01 [kjournald]
root 70 0.0 0.0 0 0 ? SW Jul02 0:00 [khubd]
root 1176 0.0 0.0 0 0 ? SW Jul02 0:00 [kjournald]
root 1469 0.0 0.0 1448 168 ? S Jul02 0:00 syslogd -m 0
root 1473 0.0 0.0 1372 0 ? SW Jul02 0:00 klogd -x
rpc 1491 0.0 0.0 1544 0 ? SW Jul02 0:00 [portmap]
rpcuser 1510 0.0 0.0 1524 0 ? SW Jul02 0:00 [rpc.statd]
root 1575 0.0 0.0 1360 0 ? SW Jul02 0:00 /usr/sbin/apmd -p 10 -w 5 -W -P /etc/sysconfig/apm-scripts/apmscript
root 1612 0.0 0.0 3500 0 ? SW Jul02 0:00 /usr/sbin/sshd
root 1626 0.0 0.0 2028 0 ? SW Jul02 0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
root 1652 0.0 0.1 5928 444 ? S Jul02 0:00 [sendmail]
smmsp 1661 0.0 0.1 5716 328 ? S Jul02 0:00 [sendmail]
root 1671 0.0 0.0 19316 0 ? SW Jul02 0:02 /usr/bin/spamd -d -c -a
root 1680 0.0 0.0 1408 52 ? S Jul02 0:00 gpm -t imps2 -m /dev/mouse
bin 1690 0.0 0.0 1912 40 ? S Jul02 0:00 [cannaserver]
root 1702 0.0 0.0 1420 136 ? S Jul02 0:00 crond
root 1713 0.0 0.2 8732 544 ? S Jul02 0:00 cupsd
wnn 1757 0.0 0.0 5160 0 ? SW Jul02 0:00 [jserver]
xfs 1834 0.0 1.4 10076 3608 ? S Jul02 0:04 [xfs]
daemon 1852 0.0 0.0 1408 160 ? S Jul02 0:00 [atd]
root 1865 0.0 0.0 1348 0 tty1 SW Jul02 0:00 /sbin/mingetty tty1
root 1866 0.0 0.0 1348 0 tty2 SW Jul02 0:00 /sbin/mingetty tty2
root 1867 0.0 0.0 1348 0 tty3 SW Jul02 0:00 /sbin/mingetty tty3
root 1868 0.0 0.0 1348 0 tty4 SW Jul02 0:00 /sbin/mingetty tty4
root 1869 0.0 0.0 1348 0 tty5 SW Jul02 0:00 /sbin/mingetty tty5
root 1870 0.0 0.0 1348 0 tty6 SW Jul02 0:00 /sbin/mingetty tty6
root 1871 0.0 0.0 15172 0 ? SW Jul02 0:00 [gdm-binary]
root 1904 0.0 0.0 16584 0 ? SW Jul02 0:01 [gdm-binary]
root 2759 14.6 8.7 45940 22376 ? S Jul02 349:18 /usr/X11R6/bin/X :0 -auth /var/gdm/:0.Xauth vt7
yangyiqi 4675 0.0 0.2 29896 700 ? S Jul03 0:01 /usr/bin/gnome-session
yangyiqi 4688 0.0 0.0 0 0 ? Z Jul03 0:00 [Xsession <defunct>]
yangyiqi 4720 0.0 0.0 3132 68 ? S Jul03 0:00 /usr/bin/ssh-agent /etc/X11/xinit/Xclients
yangyiqi 4724 0.0 0.2 19404 576 ? S Jul03 0:02 chinput
yangyiqi 4726 0.0 0.3 12668 860 ? S Jul03 0:01 /usr/libexec/gconfd-2 11
yangyiqi 4728 0.0 0.0 7460 248 ? S Jul03 0:00 /usr/libexec/bonobo-activation-server --ac-activate --ior-output-fd=16
yangyiqi 4730 0.0 0.1 18692 500 ? S Jul03 0:00 gnome-settings-daemon --oaf-activate-iid=OAFIID:GNOME_SettingsDaemon --oaf-ior-fy
 
Old 07-03-2003, 11:22 PM   #4
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
Or in a terminal or on the run line type xkill and you will get a pointer that looks like a target and just click on the mozilla window. However be careful with this since you can kill your menu or any other window you click on.
 
Old 07-03-2003, 11:41 PM   #5
yangyiqi
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
xkill worked. Thanks to contrasutra and JayCNrs!

Learned two things in such a short time!
 
Old 12-10-2003, 06:03 PM   #6
PrimaryMaster
LQ Newbie
 
Registered: Dec 2003
Distribution: Mandrake 9.2
Posts: 2

Rep: Reputation: 0
Loved this topic as another newbie Can i add a question to this? Can anyone tell me how to restart my kde menu bar after i stupidly click on it using xkill? Thank you.
 
Old 12-10-2003, 06:07 PM   #7
Baldorg
Member
 
Registered: Sep 2003
Location: GMT (-5)
Distribution: Mandrake 9.1
Posts: 288

Rep: Reputation: 31
Log in and out.....
 
Old 12-10-2003, 07:39 PM   #8
todesengel
Member
 
Registered: Sep 2003
Distribution: Slackware 10.0
Posts: 54

Rep: Reputation: 15
Quote:
Originally posted by PrimaryMaster
Loved this topic as another newbie Can i add a question to this? Can anyone tell me how to restart my kde menu bar after i stupidly click on it using xkill? Thank you.
I don't know what the process name/PID is, but try

killall -HUP [pid]
 
  


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
How to terminate this command slpwkr Programming 4 03-28-2005 12:33 PM
terminate the connection ust Linux - General 1 03-19-2005 11:07 AM
How to terminate X application? drj000 Linux - Software 1 02-10-2005 08:40 PM
how to terminate processes feetyouwell Programming 8 09-18-2004 03:27 PM
jvm won't terminate beccala33 Linux - Newbie 0 05-14-2002 12:57 PM


All times are GMT -5. The time now is 07:44 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