Re: [SLUG] automatically breaking up large print jobs

From: Kwan Lowe (kwan@digitalhermit.com)
Date: Fri May 19 2006 - 11:29:33 EDT


> 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;
}

-- 
* The Digital Hermit   http://www.digitalhermit.com
* Unix and Linux Solutions   kwan@digitalhermit.com
-----------------------------------------------------------------------
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:06 EDT