Has anyone had any success running Perl scripts natively in Automic?
Yes they work fine with both AM or AE. Which product are you using?
Here is a very simple snip from the process tab of a windows job. &SLEEPTIME# and &ERRORSTATUS are being passed from a prompt set:
perl -e "print \"Sleeping &SLEEPTIME# sec\n\";sleep &SLEEPTIME#;print \"Complete...\n\";"
@if NOT %ERRORLEVEL% == 0 goto :retcode
You can also define the Agent as an 'Interpreter' for various script languages. (I have a Powershell and Perl Agent defined). By choosing 'Interpreter' on the Windows tab of a job, the contents of the Process tab is ran by the defined Interpreter as a file.
In the Agent .ini set the following values (depending on the interpreter):ECPEXE= <path and name of program that runs the script>ECPEXT= <ext of the file the program expects>For example:Powershell -ECPEXE=C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exeECPEXT=ps1Perl -ECPEXE=C:\strawberry\perl\bin\perl.exeECPEXT=plEssentially the contents of the Process tab are ran from the command line as:
C:\strawberry\perl\bin\perl.exe <temp file>.pl
Retrieving data ...