1
2
I have multiple instances of a programm running and from time to time it stops responding. I need to check if processes of X have not been responding for >X seconds, and if yes, kill this exact process - not all instances of X, but this special one.
Monitoring programms like Kiwi or Process Explorer can only shutdown either process with PID X or ALL instanced of process X.
Can anyone share a programm/script that gives me the ability to solve this problem ?
Closer information: It is a game that i start on different accounts and sometimes the game fails to enter a session and simply stops responding, leading the account to be AFK ingame and simply wait until the session stops and then the account is queueing up again - when this happens often, there are penalties or even bans... If the account enters the session normally nothing goes wrong for anyone.
does the "/NOBREAK" make it check wether the condition "not responding" is true for the duration of the 5 second timeout ? Because i only want it to kill the task, if it doesn´t respond for >5 seconds - not if it doesn´t respond for 2 seconds and (would) then carry on running – Lennart Menzel – 2016-03-14T01:02:01.687
unfortunately not, the script keeps looping and repeating the same command that terminate the process anytime it finds it "not responding" , the timeout only delay when the next command executes which is after 5 seconds; thus i think u will need to use
if
andelse
statements ... i dont know how yet , i will try to figure it out tomorrow morning ___ good night. – Fayssal Ozilf – 2016-03-14T01:55:46.823