Hi,I have a workflow with an externaltask which calls an perl script set to 'command' parameter of the task. Inside the perl script I'm comparing two text files using windows utility fc.exeThe arguments to fc.exe are two file names with path and option /W to ignore tabs and white space.If I run the perl script as is on command line passing $jobid, $taskid and $areapath, it works fine and I see the expected result. But if the same taks is called through workflow I don't see any output nor I see any error message in iwjoberrors.logI tried both the option of executing system commands .ie backtick (`$cmd`)and system($cmd) inside perl.I would like to know if anybody has any pointers, suggestion for me..ThanksJL
Thanks Fish.Yes, I'm redirecting to an log file as shown below:my $output = `fc.exe /W $file1 $file2 > C:\\Interwoven\\OpenDeployNG\\scripts\\qna\\logs\\myoutput.txt`;myoutput.txt is getting created but no info on it.To my surprise, I tried replacing fc.exe with help.exe (which print window's commands) and I see all the help information in myoutput.txtI will also give a shot making this as cgitask.ThanksJL
my $output = qx(fc.exe /W $file1 $file2 > C:/Interwoven/OpenDeploy/scripts/qna/logs/myoutput.txt 2>&1);
Please see the output below when I run the script in command line:C:\>C:\temp\perl\bin\perl C:\Interwoven\OpenDeployNG\scripts\qna\bin\validate-akamai.ipl 19834 19842 /default/main/Content/WORKAREA/htdocsWhee, it worked! I got that text/html document!OUTPUT--------Following expected message is logged to myoutput.txt:Comparing files C:\INTERWOVEN\OPENDEPLOYNG\SCRIPTS\QNA\LOGS\purgetest.html and C:\INTERWOVEN\OPENDEPLOYNG\SCRIPTS\QNA\LOGS\PURGETEST1.HTMLFC: no differences encounteredThanksJL
"First - I prefer to use forward-slashes as it is less "ugly" and more portable.Second - I prefer to use qx() rather than `` as it is clearer in the long runThird - you probably need to redirect STDERR into STDOUT:my $output = qx(fc.exe /W $file1 $file2 > C:/Interwoven/OpenDeploy/scripts/qna/logs/myoutput.txt 2>&1);Try that and see if it works any better for you."This did not do any better...ThanksJL