LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-01-2007, 02:36 PM   #1
adnanm
Member
 
Registered: Dec 2004
Location: Bosnia and Herzegowina
Distribution: Centos, FreeBSD
Posts: 49

Rep: Reputation: 15
kill process script


Hello,

I need a shell script which will kill all processes having the name "psybnc".

I will put it in my crontab.

regards,
Adnan
 
Old 03-01-2007, 02:48 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
Code:
killall psybnc
 
Old 03-02-2007, 08:14 AM   #3
adnanm
Member
 
Registered: Dec 2004
Location: Bosnia and Herzegowina
Distribution: Centos, FreeBSD
Posts: 49

Original Poster
Rep: Reputation: 15
under FreeBSD it is not killing my processes.

Any other idea, or how to make a shell script to do it.

regards,
Adnan
 
Old 03-02-2007, 12:30 PM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
killall *is* a FreeBSD command.

If it doesn't work for you, then either you don't have the correct permissions, or your processes do not react correctly. Try "killall -9 psybnc".
 
  


Reply

Tags
solution


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
Shell Script to kill a process automaticaly brazilian_user Programming 11 06-12-2006 09:09 PM
why my script die itself when I try to kill a process?? jaimese Linux - Newbie 4 10-27-2005 05:50 AM
how do i kill a process from inside a bash script? mikaelo Programming 4 05-28-2004 08:51 AM
Kill a process launched by a shell script gsbarry Programming 7 01-06-2004 02:09 PM
script at xwin start to kill old process(es) butthead Programming 3 02-01-2002 08:39 AM


All times are GMT -5. The time now is 02:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration