Southsoftware.com
   

Ruby script

This shortcut type allows executing a Ruby script. You can find Ruby documentation and learn it on the official site: http://ruby-doc.org/.

Advanced Task Scheduler searches for Ruby executable (ruby.exe) in the directories listed in the PATH environment variable. You can also select Ruby executable directly in the option Use specific Ruby executable in the Scripts section of the Preferences window. You can download and install Ruby from its official site: http://www.ruby-lang.org/.

Arguments
The arguments are passed to the Ruby scripts through the advscheduler array. 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 avoid this limitation by including script from a file with an appropriate Ruby construction.

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

Categories: Manual, Shortcut type

Leave a Reply

   
About us   Cookie policy   Privacy policy   Terms of use   Link to us