Arcana Development logo
Site Search:
  • Home
  • Products
    • Products Overview
    • adTempus
    • Report Commander
    • Arcana Scheduler
  • Support
    • Support Home
    • Knowledge Base
    • License Management
    • Contact Support
  • Community
  • Purchase
    • Pricing and Ordering
    • Additional Purchasing Information
  • Contact
  • About Us
  • Forum HelpHelp
  • Log In
  • Register

Community

Arcana Development Forums > adTempus > Scripts > Exit Code from the Program
{1}
##LOC[OK]##
{1}
##LOC[OK]## ##LOC[Cancel]##
{1}
##LOC[OK]## ##LOC[Cancel]##

General Discussion Exit Code from the Program RSS Feed Icon

You must be logged in to reply to this topic.

1
(Showing 1 to 5 of 5)
Avatar
SKS
Joined: July 22, 2010
Posts: 3
Posted July 22, 2010 4:58:57 PM
 

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

 
Avatar
J.D.
Arcana Development Staff
Joined: September 23, 2007
Posts: 58
Posted July 23, 2010 9:41:58 AM
 

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"]

 

 
Avatar
SKS
Joined: July 22, 2010
Posts: 3
Posted July 23, 2010 10:10:17 AM
 

Thank you for the prompt reply.

 

Thanks,

SKS

 
Avatar
SKS
Joined: July 22, 2010
Posts: 3
Posted September 13, 2010 3:50:21 PM
 

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.

Thanks,

 
Avatar
J.D.
Arcana Development Staff
Joined: September 23, 2007
Posts: 58
Posted September 14, 2010 10:27:35 AM
 
Version 2.1 does not support C# scripts. In VBScript you can get the exit code using
Parameters("ADTTaskResult")

 

 
  Copyright 2012 Arcana Development, LLC. Use of this site signifies your agreement to the terms of use and privacy policy.