Site Map
.:Advanced Task Scheduler
About product
Download trial
Purchase license
Compare editions
View screenshot
FAQ & Support
Press Kit
Online manual
Blog posts
More articles...
.:Follow us
Follow us on Facebook Follow us on Twitter Follow us on YouTube

Perl scripting in Advanced Task Scheduler

Internal and standard Perl interpreter
Advanced Task Scheduler comes with internal portable Perl interpreter. You only need to install Advanced Task Scheduler, create a Perl script task and use all Perl scripting power.

Perl Task
Perl Execution Log

Getting Perl version
The script below displays current Perl version to the task execution log:

print "Version: $]";

Current task’s arguments
The script below displays the %advscheduler hash variable to the task execution log:

foreach $key (keys %advscheduler) {
  print $key, "=", $advscheduler{$key}, "\n";

Load code from external files
The script below runs Perl code from the file:

require '';

For portable Perl the file must be located in the current directory or in a directory listed in the Additional library path option in the Scripts section of the Preferences window. For installed Perl the file must be located in the current directory or in a directory listed in the PERL5LIB environment variable.

Commander features
Perl script can call some Advanced Task Scheduler features via the Command line tool. The example below demonstrates how to send an e-mail message to a GMail address:

"Text") == 0 or die "system @args failed: $?"

Where $commander is file name and path to the Command line tool: advscheduler_commander.exe, advscheduler_procmd.exe (Professional Edition) or advscheduler_netcmd.exe (Network Edition). Command line described in the Command line tool topic.

Categories: Shortcut type, Task scheduler

Leave a Reply

About us   Privacy policy   Terms of use   Link to us
Current Version:
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

I am a CPA and have used Advanced Task Scheduler Professional to automate many tasks both as part of my firm, as well as client accounting processes. I am very impressed with the power and flexibility of the software. Also, I am very appreciative of the scripts that you have written for me to help me automatically log into websites and download information. I look forward to continuing to find more uses of this software. Thanks.

Jeff Barba, CPA

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