d1tv
asked on
Perl System Call on Windows
I have a perl script on Windows that automates Sorensen Squeeze, an encoding program. It calls Squeeze via the command line, Squeeze encodes the file, quits, and the perl script continues.
Occasionally I get a video that Squeeze cannot encode, which causes a prompt to come up saying "Unsupported file" with an OK button. Because its automated, it halts the script until someone manually goes on the server and hits the OK button.
Any ideas how I can detect this is happening so I can force the application to terminate so that my queued videos don't get delayed waiting on someone to press OK.
Thanks
Mark
Occasionally I get a video that Squeeze cannot encode, which causes a prompt to come up saying "Unsupported file" with an OK button. Because its automated, it halts the script until someone manually goes on the server and hits the OK button.
Any ideas how I can detect this is happening so I can force the application to terminate so that my queued videos don't get delayed waiting on someone to press OK.
Thanks
Mark
Can't seem to find a manual for this software. Are there command line switches you can use to disable the dialog window and have it quit more gracefully? Failing that, can you test the file's type in Perl before calling Squeeze, and bypass it if it's not compatible?
ASKER
No, there is no switch to disable this according to the Squeeze manual (although I have contacted them to see if there is anything I can do to prevent it). I do a test beforehand, but every once in a while Squeeze might fail for another reason, or it may pass the test but the file could be corrupt somehow. So I'm really looking for a way to see if something fails which would bring the dialog box up.
Is there any way to grab the ouput from the call and detect such a prompt?
Is there any way to grab the ouput from the call and detect such a prompt?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.