Link to home
Start Free TrialLog in
Avatar of mshox1
mshox1

asked on

how to watch process (exe) is running under window and restart it if it 'die'?

I have a few critical process (exe) programs are running in the background server processes, that are started by scheduler task.   I can see it thru 'taskmgr'.

Now I need to do more:  if any one of the critical processor is 'die', - ie. not in the taskmgr anymore.  How can I re-start it without human attend (or course, it will be nice to be able to send me an email, then start it, and if continue start x times, it will not try to start again).    

1.  Someone told me there is a window utility can do this?  if so, I do not know where to find.  and how to use it
2. if there is NO such utility, anyone know how to write it, or if there is someone sell it.  let me know.

Need experts give me some advise and information on this subject.

thanks

mshox1
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

You could try something like the script I posted here:
https://www.experts-exchange.com/questions/21791162/Restart-exe-every-3-hours.html
if you use xp or higher and your critical tasks are written in service, then use windows OS recovery that available on service
Avatar of mshox1
mshox1

ASKER

EDDYKT,  we do use XP or higher to write the program in VB6.  what are you means by written in service?  what is wondows OS recovery that available on services..   can you provide me some direction on getting this info,  especially with examples.

thanks

mshox1
>>what are you means by written in service?

http://vbwire.com/advanced/howto/service.asp


There is recovery tab on each service and you can configure to restart your service if it fail
>>There is recovery tab on each service

There is recovery tab on each service properties
ASKER CERTIFIED SOLUTION
Avatar of justchat_1
justchat_1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think I answered the question correctly-awaiting an author response