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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-31-2004, 02:38 PM
|
#1
|
Member
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70
Rep:
|
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
|
|
|
08-31-2004, 03:07 PM
|
#2
|
Senior Member
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142
Rep:
|
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)
|
|
|
08-31-2004, 03:10 PM
|
#3
|
Member
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70
Original Poster
Rep:
|
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 ??
|
|
|
08-31-2004, 03:18 PM
|
#4
|
LQ Newbie
Registered: Aug 2004
Posts: 18
Rep:
|
:S
Why don't you just use KSysGuard, it's like the windows task manager and you can highlight serveral processes and click Kill
|
|
|
08-31-2004, 03:19 PM
|
#5
|
Member
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70
Original Poster
Rep:
|
because I DONT HAVE A GUI
Thanx
Xedios
|
|
|
08-31-2004, 03:23 PM
|
#6
|
Member
Registered: Jul 2003
Location: Olympia WA
Distribution: Gentoo Kernel 2.6.8-gentoo-r3; AMD Athlon XP 2200+
Posts: 63
Rep:
|
if it's an application, usually
does the trick.
|
|
|
08-31-2004, 03:24 PM
|
#7
|
Member
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70
Original Poster
Rep:
|
thanx
|
|
|
All times are GMT -5. The time now is 08:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|