Strange pagination...
dan at prairie.UUCP
dan at prairie.UUCP
Fri Feb 27 13:39:56 AEST 1987
In article <1208 at msudoc.UUCP> dab at msudoc.UUCP (David A. Bright) writes:
>On my MicroPort System V/AT system, I am getting strange pagination from
>the "lp" system ... Can anyone tell me where that silly FF is
>coming from?
It's being inserted by the lp driver. I believe that 1.3.8 has a
reasonably elegant solution to this (i.e. a "raw" lp minor device), but
here's something to put into your model script that should fix the
problem:
-----------------------------------------------------------------
#include <sys/lprio.h>
struct lprio lparms = {0, 140, 32767} ;
/* lpraw sets the lp driver up so that it doesn't do page breaks,
* most of the time. There really should be a raw driver, but ...
*/
main()
{
ioctl(1, LPRSET, &lparms) ;
}
---------------------------------------------------------------
Save as lpraw.c, compile it, stick it somewhere, and invoke it
from your lp script. Since the script is invoked by the spooler
with stdout already set to the lpdriver, the ioctl(1,...) is
appropriate.
--
Dan Frank (w9nk)
ARPA: dan at db.wisc.edu ATT: (608) 255-0002 (home)
UUCP: ... uwvax!prairie!dan (608) 262-4196 (office)
SNAILMAIL: 1802 Keyes Ave. Madison, WI 53711-2006
More information about the Comp.unix.questions
mailing list