Re: [SLUG] automatically breaking up large print jobs

From: Eben King (eben1@tampabay.rr.com)
Date: Fri May 19 2006 - 11:53:06 EDT


On Fri, 19 May 2006, Kwan Lowe wrote:

>
>> I have a laser printer hooked up to my Linux print server (fedora core
>> 4), and unfortunately whenever I send a large print job (more then 4
>> pages) to the printer it jams up. I am looking for a way to have my
>> print server (I'm using cups), to automatically print 3-4 pages, pause
>> for a minute, print another 3-4 pages, pause a minute, and keep going in
>> that manner till the print job is over. Anybody have any ideas?
>
> If you can get the jobs in Postscript format (should be pretty simple),
> then you can use the psselect command to specify which pages to print.
> You can grab the number of pages by looking for "%%Pages: " in the
> Postscript file. Create a script does something like this:
>
> for ( $i=1; $i <= $numpages; $i+=4 ) {
> startp = $i;
> endp = $i + 3;
> psselect -p$startp,$endp $postscript_filename $tempfile;
> lpr $tempfile;
> sleep 60;
> }

What happens when numpages=5, on the second pass (pages 5-8)? Is pselect
smart enough to tolerate nonexistent pages?

Don't forget to rm $postscript_filename $tempfile when you're done.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar

My parents went to a planet where the inhabitants have no bilateral symmetry, and all I got was this lousy F-shirt. ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:11:16 EDT