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 08-31-2004, 02:38 PM   #1
xedios
Member
 
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70

Rep: Reputation: 15
dumb question


Hi all

I was wondering if I could kill a proces by his name

ig.

If I wish to kill a proces i do so

#ps -ef|grep " app name "

#and then I get a pid

#kill -9 pid

So if it's there a simplier way to kill this please letmi know


Thanx
Xedios
 
Old 08-31-2004, 03:07 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
You can try pidof... As long as you don't have several processes of the same name running.

# kill $(pidof app_name)

That depends on pidof being in your path, otherwise you can use...

# kill $(/sbin/pidof app_name)
 
Old 08-31-2004, 03:10 PM   #3
xedios
Member
 
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70

Original Poster
Rep: Reputation: 15
ok thanx

but Imagin that i like to kil several instances of wget or some other proces ... does this work an kils every proces by this name ??
 
Old 08-31-2004, 03:18 PM   #4
Susage
LQ Newbie
 
Registered: Aug 2004
Posts: 18

Rep: Reputation: 0
:S

Why don't you just use KSysGuard, it's like the windows task manager and you can highlight serveral processes and click Kill
 
Old 08-31-2004, 03:19 PM   #5
xedios
Member
 
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70

Original Poster
Rep: Reputation: 15
because I DONT HAVE A GUI

Thanx
Xedios
 
Old 08-31-2004, 03:23 PM   #6
sketelsen
Member
 
Registered: Jul 2003
Location: Olympia WA
Distribution: Gentoo Kernel 2.6.8-gentoo-r3; AMD Athlon XP 2200+
Posts: 63

Rep: Reputation: 15
if it's an application, usually

Code:
killall appname
does the trick.
 
Old 08-31-2004, 03:24 PM   #7
xedios
Member
 
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70

Original Poster
Rep: Reputation: 15
thanx
 
  


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
dumb a*s question Jetta-GT- Linux - Newbie 3 01-08-2004 06:58 AM
REALLY dumb question christer Linux - Newbie 11 10-05-2003 11:43 PM
Dumb question Thetargos Linux - Software 3 05-06-2003 08:31 PM
Dumb Question!!!! cirkut5732 Linux - Newbie 3 04-16-2003 01:39 PM
Dumb Question spuppett Linux - Software 8 02-13-2003 01:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:22 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
Open Source Consulting | Domain Registration