|

See Also: Product Documentation | Download an Evaluation Copy
Scripting Support
adTempus includes
extensive support for scripts using the Windows Scripting Host (the standard Windows
scripting platform, which supports VBScript, JavaScript, and other scripting languages such as PerlScript, using the
appropriate plug-ins).
Beginning with version 3.0, adTempus also supports scripts written in VB.NET and C#, making the full
power of the .NET Framework available to script writers.
A script plays one of two roles in adTempus:
- It can be the key "application" of a job (i.e., run instead of a
traditional program).
- It can be a "helper" script used to tailor the behavior of the
job.
Any scheduling application can run a script by invoking the wscript or
cscript utilities. However, adTempus extends this capability in several
ways.
A key advantage is that scripts run by adTempus can return result codes
(like the exit codes that many batch programs return), which allows the
scripts to indicate to adTempus whether they were successful. adTempus can
then take the necessary actions based on the result.
"Helper" scripts can also be used throughout
adTempus. For example:
- They can be used in response to events to perform custom
processing within a job. For example, a script can be used to send
keystrokes to a program after adTempus launches it, or to clean up
temporary files produced by a scheduled program.
- They can be used to determine whether a program succeeded. For
example, if you have a program that does not return an exit code, you
can supply a script that determines whether the program succeeded by
checking to see if it produced the output file it was supposed to
produce.
- They can be used to dynamically build the command-line parameters or
environment variables to be passed to a program. For example, you might
want to always pass the current date on a program's command line; a
script can be used to do this.
Store and Share Code for Reuse
adTempus allows scripts to be shared between jobs and users (with
security settings to determine which users can use a script).
adTempus also features Script Libraries, which allow you to build
libraries of commonly-used data and subroutines, which can then be used by
scripts run within adTempus.
|