[bug-pcl] Re: sorry to bother you directly

Stefan Kemper stefan.kemper at artifex.com
Wed Jul 13 19:33:34 PDT 2005


Eric Robert Adam Holp wrote:

> Hi,
> I'm really sorry to bother you directly like this.
> I saw the "ghostpcl bug reporting forum" but this doesn't seem to be a 
> bug.
> Do you know of somewhere that I can post the following questions?
>
That's the right place.

pcl6 -dNOPAUSE -sDEVICE=bbox -sOutputFile=/dev/null dfA311*

Will output 2 lines per page.

> I'm using ghostpcl in a perl script to return the page counts for 
> print spool files.
> I've found that if I do the following it mostly works:
> cat dfA827lib1se-pc-24.lib.msu.edu | pcl6 -sDEVICE=nullpage 
> -sOutputFile=/dev/null -
> The "cat" causes pcl6 to output:
> End of page 1, press <enter> to continue.
> End of page 2, press <enter> to continue.
> without waiting for <enter>, which is the desired behavior.
> The problem is that some files do the following:
> cat dfA311*|pcl6 -sDEVICE=nullpage -sOutputFile=/dev/null -
> End of page 1, press <enter> to continue.
> End of page 2, press <enter> to continue.
> Warning interpreter exited with error code -10
> Flushing to end of job
>
>
> If I run the same command with the filename as an argument to pcl6:
> pcl6 -sDEVICE=nullpage -sOutputFile=/dev/null dfA311*
> End of page 1, press <enter> to continue.
> End of page 2, press <enter> to continue.
> End of page 3, press <enter> to continue.
> End of page 4, press <enter> to continue.
>
> but I have to hit <enter>, which I can't do (easily) from inside my 
> program.
> I suspect that the problem is with the "cat" not piping the binary 
> data correctly.
> Is there some way to make pcl6 take the filename as an argument, 
> display the pages, but not wait for <enter>?  (Or failing that, does 
> anyone know of a "binary cat"?)
> (I tried -dNOPAUSE but nothing was returned.)
>
> Thank you!
> Eric
>
>
>
>



More information about the bug-pcl mailing list