Linux game command help.

im using wembin as a control panel and i want to add scripts to start and stop games.

Lets say i use this command to start my call of duty 2 server

screen ./cod2_lnxded +set dedicated 2 +set net_ip 72.36.230.61 +set net_port 28960


Its now in a screen and i can close out of the terminal and its all good.

what could be a command i could use in a terminal to quit the game without going in to the screen again, using a PID ?
remember these are "custom commands" for webmin so a user would never see the terminal, just click the start button and that first command would execute, then im looking for a button to stop the server. any help is good, i found an article specific to half life games but this is not half life Linux game command help.

 

 

 

 

Top