LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Helllpppp (https://www.linuxquestions.org/questions/linux-newbie-8/helllpppp-354895/)

murder 08-19-2005 10:18 AM

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

PeterRJG 08-19-2005 10:31 AM

Why can't you kill it using its pid?

JimBass 08-19-2005 10:31 AM

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

murder 08-19-2005 10:41 AM

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

JimBass 08-19-2005 10:46 AM

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

bsmith121 08-19-2005 11:19 AM

killall cod_lnxded

murder 08-19-2005 11:49 AM

thanks guys


All times are GMT -5. The time now is 09:53 PM.