Skip to main content.
home | support | download

Back to List Archive

Re: Which PDF file?

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Wed Jan 05 2005 - 20:10:28 GMT
On Wed, Jan 05, 2005 at 11:49:25AM -0800, Richard Morin wrote:
> As the trace indicates, both programs are having problems
> with the same file.  Unfortunately, no error code is being
> returned:

Well, that's a pain.  It might be worth talking to the xpdf author
about when the program returns error codes.

The other option when a program doesn't return an error code but
prints to stderr is to capture stderr and watch for a given message
(or any at all).

You do that with IPC::Open3.  perldoc perlfaq8 has a section that
describes how to capture both stderr and stdout.  That would replace
the fork/exec that is done currently in run_program().


-- 
Bill Moseley
moseley@hank.org

Unsubscribe from or help with the swish-e list: 
   http://swish-e.org/Discussion/

Help with Swish-e:
   http://swish-e.org/current/docs
   swish-e@sunsite.berkeley.edu
Received on Wed Jan 5 12:10:28 2005