WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Bug Reports >> Tasks will Not Restart
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1163448974

Message started by dmatthew on Nov 13th, 2006 at 9:16pm

Title: Tasks will Not Restart
Post by dmatthew on Nov 13th, 2006 at 9:16pm
We are using Watch Directory to e-mail us logs when a user's backup finishes.  However most of these user's computers are not turned on everyday and this causes the Watch Directory to stop monitoring.  Is there a way to set it up where when the computer comes back on, the Watch Directory task will start back up?  We have all the tasks set to run as a Windows Service.

Title: Re: Tasks will Not Restart
Post by Gert on Nov 14th, 2006 at 2:04pm
At the moment there is only a (clumsy) work-around....

You should not enable the option "when the network directory is not available, keep trying". This will cause the task to stop as soon as the monitored computer goes down.
To make sure that the tasks starts up again when the monitored computer comes up, write a little .bat script (autostart.bat) containing these lines:
[code]
Start "task 1" "c:\program files\watchdirectory\wdrun.exe" -start TASK1
Start "task 2" "c:\program files\watchdirectory\wdrun.exe" -start TASK2
[/code]
And use the windows scheduler to start this .bat file every 5 minutes. The commands inside it will start TASK1 and TASK2 only when they are not already running.

In the (near) future there will be a free add-on program available that will automatically do the above.

Gert

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.