Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Guest
2017-12-02T07:19:30Z
Hi,

is there a way VC could monitor if a exe is running and if nog wait x min and restart the exe?
I have an exe running on a server and it crashes sometimes unexpectedly. I have not found the reason but would like to have it automatically restarted with a certain delay.

Thank you very mush for any answer.

Kind regards,
Marc
Sponsor
Forum information
Danny van Oijen
2017-12-04T10:56:55Z
You could use a process event trigger than a wait task and kill task.
Another approach is to use a time trigger and use powershell.

Below code will look for the calc process, if it is running longer than 30 min it will kill it.

Quote:

Get-Process calc |
Where StartTime -lt (Get-Date).AddMinutes(-30) # |
Stop-Process -Force



Support
2017-12-08T10:29:46Z
Use the Process Trigger. It can detect Termination of a process. So once that happens you can restart your executable.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top