Skip to main content
Question

Check for failure on nightly batch jobs

  • August 9, 2022
  • 1 reply
  • 14 views

so_much_more
Supporter
Forum|alt.badge.img+6

I have a batch file which runs a WB nightly. It also write a log file which is great. But is there a "universal" way to control that the workbench ran successfully? Or do I have to make a script to scan the log file for key words? What key words would that be?

Hopefully there is a better way?

1 reply

virtualcitymatt
Celebrity
Forum|alt.badge.img+34

In your batch you should be able to test the exit code directly after the run.

https://www.shellhacks.com/windows-get-exit-code-errorlevel-cmd-powershell/#:~:text=Every%20command%20or%20application%20returns,interpreted%20as%20an%20error%20code.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings