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/.
Advanced Task Scheduler searches for Perl executable (perl.exe
) in the directories listed in the PATH
environment variable. You can also select Perl executable directly in the option Use specific Perl executable in the Scripts section of the Preferences window. 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: actionname
, actiontime
, actionschedule
, actionsource
, actionsourceextra
, lasterrorcode
, lastexitcode
. Professional and Network Editions: all defined tempfile
variables are also passed. These arguments are described in the Variables topic.
Script output
When a script completes execution, its output appears in the execution log.
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
You must be logged in to post a comment.