Southsoftware.com
.:Pricing
Home
Products
Downloads
Support
Contacts
Site Map
.:Advanced Task Scheduler
About product
Download trial
Purchase license
Compare editions
View screenshot
FAQ & Support
Press Kit
.:Articles
Online manual
Blog posts
Videos
More articles...
.:Follow us
Follow us on Facebook Follow us on Twitter Follow us on YouTube
   

Perl script

This shortcut type allows executing a Perl script. You can find Perl documentation and learn it on the official site: http://www.perl.org/.

Perl can be executed in two ways in Advanced Task Scheduler:

  • Internal portable Perl: you do not need to install and configure Perl to run Perl scripts from Advanced Task Scheduler.
  • Installed Perl: binary Perl installation is required.

Portable Perl
When the option Use internal Perl interpreter in the Scripts section of the Preferences window is selected,
internal portable Perl interpreter is used to run Perl scripts. Portable Perl in Advanced Task Scheduler is built from original sources and packed into a single executable (advscheduler_perl.exe). It includes all standard modules, excluding CPAN module, which can’t work with this portable Perl. For more information how to add modules, please see the Additional libraries section.

Installed Perl
When the option Use internal Perl interpreter in the Scripts section of the Preferences window is not selected, Advanced Task Scheduler searches for Perl executable (perl.exe) in the directories listed in the PATH environment variable. You can download and install Perl from its official site: http://www.perl.org/.

Arguments
The arguments are passed to the Perl scripts through the %advscheduler variable. The following keys are passed: actionschedule, actiontime, actionsource, actionsourceextra, lasterrorcode, lastexitcode. Professional and Network Editions: all defined tempfile variables are also passed. These arguments are described in the Launch application topic.

Additional libraries
This portable Perl can load modules in binary form from a directory listed in the Additional library path option in the Scripts section of the Preferences window. If you need a specific module and you are a registered user, please let us know and we’ll add that module to this portable Perl.

Script length
Although, the maximal length of the script is 32,768 characters, you can use the “require "filename.pl";” construction to load another Perl script file. Such files do not have length limitations.

Returning codes
Error code: Error code of starting the command
Exit code: Exit code from the script

Related Articles
Perl scripting in Advanced Task Scheduler

Categories: Manual, Shortcut type

Leave a Reply

   
About us   Privacy policy   Terms of use   Link to us
Current Version: 4.4.0.615
The following prices are based on a single order:
Basic Edition 32 and 64-bit$ 39.95 USD
Professional Edition 32 and 64-bit$ 59.95 USD
Network Edition 32 and 64-bit$ 149.95 USD
.:Testimonials

I use Advanced Task Scheduler to run my backups jobs. After performing a backup by standard Windows 2003 Server means, Advanced Task Scheduler launches a script which copies files. I am glad I chose your program.

Rob Hannigan

.:Requirements
Computer: Minimum required by operating system you are running.
Disk Space: Under 30 MB
Operating System: Microsoft Windows 32-bit or 64-bit.
Read more...