On Thu, Mar 18, 2004 at 12:49:23PM -0800, Philippus, Brian wrote:
> I renamed that program to swish-filter-test.pl and ran it and it filtered
> the file just fine. So I ran it a second time, and it hung. In the task
> manager, I found pdftotext.exe running.
Ok, so my wild guess is that Perl is not closing the program correctly.
My next suggestion would be to try running pdftotext.exe via IPC::Open2
which is what Filter.pm does. That means writing a little bit of Perl
and/or copying some code from Filter.pm.
Can someone that has Windows help Brian out here? Brian, it would be
helpful if we knew what version of Windows and Perl you are running, I
In Filter.pm there's "windows_fork()" which uses IPC::Open2 to run the
program. That function should return a file handle.
It's called from "run_program()" and the file handle goes out of scope
at the end of that function which should close the pipe. Perhaps that's
not happening on Windows.
Or maybe I could be way off and instead what's happening is that
pdftotext is hanging for some other reason.
This is all just guessing, though. Debugging problems on windows is often
frustrating for me.
Received on Thu Mar 18 12:58:49 2004