Has anyone used the syscmd node to call a perl script? Can it be done?
pushd <!variable> && perl IFSUserDelete.pl.. does that work?
Yes you can call a perl script, bat script, powershell script from a command line.In the system command :perl <program> <arguments>
I have multiple perl scripts I used to assist me with my job; parsing log files, etc. I have one that strips the activity times off a workunit log called wuATs.pl, and it accepts a file as a parameter/argument.
perl wuATs.pl 999999.log^ chances are this will fail unless wuATs.pl and 999999.log are in the same directory, and just happen to be the "working directory" that my system command lands in.
Solutionperl C:CommandLineProgramswuATs.pl C:UsersmyuserDownloads999999.log Alternative SolutionAdd C:CommandLinePrograms to the PATH environment variable of your PC.Now since perl is already there I can actually drop "perl" from my command.
wuATs.pl C:UsersmyuserDownloads999999.log^ works.
Thanks Russel, I think my issue is that the script I need to run is on the D drive of the server (perl script and file in same location). I tried to use "pushd <!_configuration.system.IFSFileLocation>perl IFSUserDelete.pl" to run it but I get the message that the directory does not exist. I confirmed the directory wasn't misspelled so it may not like the combination of the pushd and then the perl command?
Thanks Russel! That did the trick!