Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Title change to 'faq' form

Script Jobs in Standard Unix Scripting Languages

Question:

Can I script jobs in standard Unix scripting languages (sh, Perl)?

Answer:

Yes! sh and Perl scripts can be launched as executables.

...

  • Java,
  • Javascript, the Mozilla (see SpiderMonkey) runtime environment is included for the above platforms,
  • for Windows additionally VBScript is supported.
  • Perl jobs with API support may be operated for Windows provided that an ActiveState implementation is installed. For Linux and Solaris there are restrictions due to the fact that Perl is not threadsafe implemented, for both platforms we have to link the Perl libraries to the scheduler.
a) Example Standalone Perl Script

The example package of the installation contains the files "scheduler_samples_perlscript.xml" and "sample_script_notification.pl" that show the configuration and implementation for a job named "sample_script_notification". Job starts for this simple script are triggered by changes in the given directory.

b) Example Perl Script using JobScheduler API

The file "sample_api_notification.pl" of the example installation package is a more complete example that demonstrates the usage of JobScheduler API for logging and error handling. This script moves files from one directory to another as soon as they appear and is triggered by directory notification. (this example script was tested for Windows (ActiveState) and Linux with Perl 5.8)

...