does anybody have any experience with getting the CLT iwinvokejob to accept a variable value for the jobID parameter? either within a Perl script (using the system function), within a wft (using the command directive in an externaltask), or simply within the command line itself?
attached is perl code snippet we're using to test this- we get iwjobc to output to a text file OK, and get the value into a Perl variable, but how to pass the Perl variable to the iwinvokejob CLT? (see bottom 4 lines for things tried, without success)
#!/projects/iw-home/iw-perl/bin/iwperl -w
system('/projects/iw-home/bin/iwjobc /tmp/workorderjobspec.xml > /tmp/jobid2.txt');
open(FILE, '/tmp/jobid2.txt');
@wfjobid = <FILE>;
print
@wfjobid;
print "... is wfjobid\n";
# need to run iwinvokejob accepting variable value into jobID parameter
#system('/projects/iw-home/bin/iwinvokejob
@wfjobid');
#system('/projects/iw-home/bin/iwinvokejob | cat /tmp/jobid2.txt');
#system('/projects/iw-home/bin/iwinvokejob < cat /tmp/jobid2.txt');
system('/projects/iw-home/bin/iwinvokejob << cat /tmp/jobid2.txt');
thanks in advance for any help