LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 10: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, 10: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, 10: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, 10: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, 10: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, 11:19 AM   #6
bsmith121
Member
 
Registered: Aug 2003
Distribution: Fedora Core 6, Gentoo
Posts: 34

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

Original Poster
Rep: Reputation: 15
thanks guys
 
  


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
Cvs Helllpppp!!!!! yenonn Linux - General 7 01-19-2004 11:34 PM

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

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