You must be logged in to reply to this topic.
Hello ,
We are using adTempus 3.0.7.3. I am trying to write a script to capture the exit code or return code from the program. I am writing the script in C#. I was searching for the exit code and found out Environment.ExitCode.ToString() . But this seems to be not the correct one. When I tried to print it in logs using "adTempus.LogMessage (MessageTypeEnum.Informational, 0, Environment.ExitCode.ToString());" it is displaying ZERO always. I wanted to know what is the correct variable used for the exit code or return code from the program that I could use it in the scripts.
Your immediate response is greatly appreciated.
Thanks,
SKS
I assume you are looking for the exit code from the program that is being run by your job?
This is available through an adTempus Job Variable named "ProcessExitCode". You can retrieve it using
adTempus.JobVariables["ProcessExitCode"]
Thank you for the prompt reply.
Hello,
This one doesn't run in Product Version: 2.1.0.0. but runs in 3.0 version. Please advise.
adTempus.JobVariables["ProcessExitCode"] . How to get the exit code in 2.0 versions.
Parameters("ADTTaskResult")