I'm trying to use the exec command in a Vortex script to call a PERL script while passing in a few parameters:
<$var1="202">
<$var2="12840~761">
<EXEC /bin/perl /usr/local/ps/search/getFoundData.pl $var1 $var2 >
</EXEC>
This is returns:
<!-- 118 /search/searchnow_simple:89: <EXEC> command /bin/perl returned exit code 2 -->
I thought that it might be having a problem with the variables so I tried running it with values placed in the exec:
<EXEC /bin/perl /usr/local/ps/search/getFoundData.pl 202 12840~761><EXEC>
This gets the same error message. I can run this from the command line without any problems. Do you have any idea why this doesn't work?
<$var1="202">
<$var2="12840~761">
<EXEC /bin/perl /usr/local/ps/search/getFoundData.pl $var1 $var2 >
</EXEC>
This is returns:
<!-- 118 /search/searchnow_simple:89: <EXEC> command /bin/perl returned exit code 2 -->
I thought that it might be having a problem with the variables so I tried running it with values placed in the exec:
<EXEC /bin/perl /usr/local/ps/search/getFoundData.pl 202 12840~761><EXEC>
This gets the same error message. I can run this from the command line without any problems. Do you have any idea why this doesn't work?