From: Luke Cole <luke@(email surpressed).au>
Subject: Re: Rush + Autodesk Cleaner?
   Date: Fri, 30 Mar 2007 00:56:42 -0400
Msg# 1516
View Complete Thread (12 articles) | All Threads
Last Next
Hi Greg,

[posted to rush.general]

	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..

OK, I've updated my code as you suggested, and it seems to submit OK now, so when I tried it out originally, there must have been something wrong with my escaping in the system() call.

I still encounter the issue where the rush job runs forever however, even though the cleaner render is finished according to the output in the log file - I just checked the windows task manager on the machine and have noticed that "Cleaner XL.com" is still running, so this would explain why the rush job is still going. I'm not sure why Cleaner is not exiting when it is launched from the rush perl script - when I run the command ("C:\Program Files\ etc) directly in the win32 console, it exits after the render is done.

Something I noticed when I run the Cleaner command in the windows console - it launches the Cleaner GUI and then closes it all down again when it exits after the render, however this does not happen when I submit through rush, so I am guessing that this output is redirected somehow.

Additionally, one other thing that I have noticed is that if I now try to run the modified perl script directly in the windows console (as opposed to submitting it via rush), I now receive the Cleaner error dialog that I referred to before. This does not seem to occur however when I launch the job from rush, so I guess it isn't really a problem. Weird.

Thanks,

---
Luke Cole
Research & Development

FUEL International
65 King St., Newtown, Sydney NSW, Australia 2042



Last Next