WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Tasks will Not Restart (Read 2512 times)
dmatthew
YaBB Newbies
*
Offline



Posts: 3
Tasks will Not Restart
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.
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2224
The Netherlands
Re: Tasks will Not Restart
Reply #1 - 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
 


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
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1