Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

Target Audience

  • The following instructions apply to users who want to make use of the JobScheduler API Interface in their Perl scripts.
    • The Perl support of the JobScheduler engine should be configured for the Perl release that is operated in your environment.

    • Currently JobScheduler comes with support for Perl release 5.18.2 (http://www.sos-berlin.com/jira/browse/JS-1096).

  • Perl support for the JobScheduler API is not required if you just wanted to run existing Perl scripts with JobScheduler. In that case Perl scripts are executed in the same way as any shell scripts, see How can I create a simple shell job? 

Prerequisites on Linux

The JobScheduler needs a library ./lib/libsosperlscript.<perl-version>.so that is included in the setup.

...

This library works with Perl versions 5.12.x, 5.14.x, 5.16.x too.

32Bit JobScheduler

  1. You have to install a 32Bit Perl or a 64Bit Perl
  2. Create 2 symlinks in the ./lib directory of the JobScheduler installation
    1. The first symlink with the name libperl.so has to point to the 32Bit Perl interpreter libperl.so of the Perl installation
    2. The second symlink with the name libsosperlscript.so has to point to the ./lib/libsosperlscript.<perl-version>.so.

...

Code Block
 [ERROR]  COM-80020009  DISP_E_EXCEPTION [begin] [] [COM-800401F8  CO_E_DLLNOTFOUND [CoGetClassObject] [perlScript], in Remote_module_instance_server::begin], method=call
 [info]   dlopen("libsosperlscript.so"): /install/path/of/jobscheduler/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /install/path/of/jobscheduler/lib/libsosperlscript.so)

64Bit JobScheduler

  1. You have to install a 64Bit Perl
  2. Create 2 symlinks in the ./lib directory of the JobScheduler installation
    1. The first symlink with the name libperl.so has to point to the 64Bit Perl interpreter libperl.so of the Perl installation
    2. The second symlink with the name libsosperlscript.so has to point to the ./lib/libsosperlscript.<perl-version>.so.

...

Code Block
languagebash
 > ln -s /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi/CORE/libperl.so libperl.so
 > test -f libsosperlscript.so && rm libsosperlscript.so
 > ln -s libsosperlscript.5.18.2.so libsosperlscript.so

Set $PERL5LIB

The libsosperlscript.<perl-version>.so library sets the @INC variable from the environment where libsosperlscript.<perl-version>.so was compiled.
This could be different from your own Perl environment. In such cases you can use

...

See the article How to add environment variables for all jobs for more information how you change the environment of the JobScheduler.

Prerequisites on Windows

You have to install an current ActivePerl with 32Bit or 64Bit as for the JobScheduler release.

Job Example

Now you can test the JobScheduler Perl- PI with e.g. the following job:

...