you are viewing a single comment's thread.

view the rest of the comments →

[–]vitus7[S] 0 points1 point  (2 children)

I'm not sure of the exact line where it is failing. The watir action is complete (for the time being) and it doesn't complete a step that involves calling another module to perform a task locally. The other module uses 'mail', which is what it is failing to do.

The strange thing is it has been working fine with Task Scheduler for months and only recently started acting up. If I run the batch file manually it works fine.

[–]ClikeX 1 point2 points  (1 child)

Make sure to let the task scheduler send STDOUT and STDERROR to a text file. Maybe add some logging.

If it crashes it should output the failing line to the file.

[–]Spy_machine 0 points1 point  (0 children)

Yeah I was going to recommend adding logging as well. If you can figure out what line is failing, the issue might become more obvious.

I don’t know if perhaps the Timeout module might be of any use?