Hi,
I am executing a Job.
The Job has 2 taks.
1. First task executes a ".exe"(C#) file along with arguments. This exe returns different values for example Success - 0, Failure - 6, Critical - 8, Nothing - 12.......
2. Second task writes the output and Exit Code of First task to a text file in file system.
When I run the job, if the .exe(first task) returns a Success value - 0 then the second task runs succesfully. If the .exe(first task) returns a value other than "0" it throws an
Output(stderr) - Exception In Task: Non Zero Exit Code
Result - The handle is Invalid.
And the second task does not start.
What i need is:
I need to add conditions on task1 based on ExitCode - Like if ExitCode is 0 - Sending email to
test1@gmail.comLike if ExitCode is 6 - Sending email to
test2@gmail.comLike if ExitCode is 8 - Sending email to
test2@gmail.comI am using VisualCron client not using API.
Thanks.