|
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 =)
|