Run Perl script from appscript
I'm trying to run an existing Perl script that is located on the SBM server from an appscript. I was able to run the below code sucessfully as a VBS on the server. Although, when run as a post-transition script I receive " Object required -- ERR #9 "Here's the code. Pretty straight forward. Any help would be appreciated.dim CMDset CMD = createobject("WScript.Shell")CMD.run "d:\perl\bin\Perl.exe d:\perl\teamtracktest.pl"
Re: Run Perl script from appscript
This is how we run perl scripts from an appscript:
ExeOk = Ext.CmdLineWait("perl D:\Program Files\Serena\SBM\Application Engine\bin\perl\script.pl > D:\Program Files\Serena\SBM\Application Engine\log\perl_script_debug_log.txt 2<&1")If ExeOk = 0 Then ' everything is goodElse ' script failedEnd IfI think you have to make sure that the perl script is in the SBM base installation bin folder so the web server can find the script and has access to it.We're still on 2009R4, so I'm not sure if the syntax changes any with the newer versions.