View Single Post
Old 12-19-2002, 07:28 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,475
sde is on a distinguished road
killing a process by name?

i would like to be able to write a script that kills a process somehow by a name rather than a PID.

for example, i use this command to start my game server:

./hds_run -game cstrike -port 17016

sometimes i would like to restart the game server when i don't have shell access ( like from work behind our firewall ), so i want to make a web control panel to stop the server. the php would just execute a file on the server which kills the hlds_run program.

does this make sense?

i may be going about askin the question wrong, but give me any tips out there.. i'd appreciate it =)
sde is offline   Reply With Quote