LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 01: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, 02: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, 02: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, 02: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, 02: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, 02: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, 02:24 PM   #7
xedios
Member
 
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70

Original Poster
Rep: Reputation: 15
thanx
 
  


Reply



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

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

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