First, what happens if you avoid the cleaner.bat approach completely,
and just try this:
sub MainRender()
{
my $err = system('"C:\Program Files\Autodesk\Cleaner XL 1.5\Cleaner XL" '.
'/I I:\TVC_Tools\CleanerToolkit\profiles\input\DV_PAL_4x3.ip '.
'/O I:\TVC_Tools\CleanerToolkit\profiles\output\3GP_PAL_4x3.opt '.
'/D I:\TVC_Tools\CleanerToolkit\renders '.
'/sources I:\TVC_Tools\CleanerToolkit\test_data\test.mov');
if ( $err ) { print "--- FAILED\n"; exit(1); }
print "--- OK\n";
exit(0);
}
..being sure that system line is all on one line.
(My apologies for any typos, as I didn't test it, but I think I specified
that correctly)
If that doesn't fly, read on..
Luke Cole wrote:
Here is the batch file (cleaner.bat):
CMD /C ""C:\Program Files\Autodesk\Cleaner XL 1.5\Cleaner XL" /I %1 /O %2 /D %3 /sources %4"
EXIT /B 0
One quick suggestion about the cleaner.bat file: make it a one line program that reads:
"C:\Program Files\Autodesk\Cleaner XL 1.5\Cleaner XL" /I %1 /O %2 /D %3 /sources %4
The batch script should return the exit code of the 'cleaner xl' program
without an 'exit' command present.
BTW, what I meant about add the 'cmd /c' was when you called
the cleaner.bat from within the system() command, eg:
sub MainRender {
system('cmd /c I:\TVC_Tools\CleanerToolkit\bin\cleaner.bat ..');
Anyway, try those tweaks, and when I get back tonight, I'll try
some tests if you don't have any luck.
--
Greg Ercolano, erco@(email surpressed)
Rush Render Queue, http://seriss.com/rush/
Tel: (Tel# suppressed)
Fax: (Tel# suppressed)
Cel: (Tel# suppressed)
|