LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-19-2005, 11:18 AM   #1
murder
LQ Newbie
 
Registered: Aug 2005
Posts: 29

Rep: Reputation: 15
Helllpppp


how can i kill this process without a using the PID

Code:
./cod_lnxded +set net_ip 209.165.244.229 +set net_port 28960 +set dedicated 2 +exec dedicated.cfg &
ive tried to look it up on google for days but i can seem to find it is there anyone that can help me please
 
Old 08-19-2005, 11:31 AM   #2
PeterRJG
Member
 
Registered: Jun 2005
Location: Northern NSW, Australia
Distribution: LXLE
Posts: 123

Rep: Reputation: 15
Why can't you kill it using its pid?
 
Old 08-19-2005, 11:31 AM   #3
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
It would help if you told us what distro you are running. You need to find the PID, which is not difficult, you do either:

Code:
ps -aux |grep cod_lnxded
Or else:
Code:
ps -ef |grep cod_lnxded
And that will give you the PID for the process. Then you isue the command
Code:
kill -15 (PID#)
You may need to be root to kill the process, depends on what started the process.

Peace,
JimBass
 
Old 08-19-2005, 11:41 AM   #4
murder
LQ Newbie
 
Registered: Aug 2005
Posts: 29

Original Poster
Rep: Reputation: 15
Fedora C4

Im trying write a script that will start, stop, or restart this process. thats why im looking for a way to kill it without having to use the PID
 
Old 08-19-2005, 11:46 AM   #5
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Look at the other scripts that do that then. Look at the /etc/init.d directory. Most of the scripts in there can be called with stop, start, reload and such. Check out what they do, and then modify it to your needs.

Peace,
JimBass
 
Old 08-19-2005, 12:19 PM   #6
bsmith121
Member
 
Registered: Aug 2003
Distribution: Fedora Core 6, Gentoo
Posts: 34

Rep: Reputation: 15
killall cod_lnxded
 
Old 08-19-2005, 12:49 PM   #7
murder
LQ Newbie
 
Registered: Aug 2005
Posts: 29

Original Poster
Rep: Reputation: 15
thanks guys
 
  


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
Cvs Helllpppp!!!!! yenonn Linux - General 7 01-20-2004 12:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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