SUMMARY: Remote printers munging print jobs

From: Dave Shevett (sparc!
Date: Fri Dec 11 1992 - 07:58:37 CST

OKAY! You can stop msging me now, WE HAVE A WINNER! :)

Apparently, this is a known 'trick' in setting up spooling on
SunOS systems. One I wasn't familiar with, but is very very
easy to fix. First, the original msg:

> I have a network consisting of (among other things) a SparcServer/330
> and a Sun 3/160 (i think). The Sparcserver (cleverly named 'sparc')
> uses the sun/3 (named 'erika') as a print server.
> We have 2 printers on erika, named 'slp' and 'flp'. We have set up
> entries on sparc to use slp and flp as remote printers. We can print
> to the printers from sparc via lpr -Pslp and things work peachy. BUT,
> if I run two jobs immediately after one another, they both show up
> on one printer. If I pause the jobs, say for 5 seconds, they go to
> their appropriate printer.
> Nother data point: if i run the two jobs immediately after one another
> on erika, they go to the correct printers. Go figure.
> (on sparc, /etc/printcap )
> flp|Okidata|The Fast Line Printer: \
> :rp=flp:rm=erika:
> slp|Panasonic|The Slow Line Printer: \
> :rp=slp:rm=erika:
> ipr|IMAGEN:\
> :lp=/dev/ttyd:\
> [etc etc etc]
> (On erika, /etc/printcap )
> slp|slw|lw|lp|Panasonic:\
> :br#1200:lp=/dev/tty0f:tr=\n:lf=/usr/adm/lpd-errs:
> ipr|ip|IMAGEN|Imagen:\
> :rp=ipr:rm=sparc:
> flp|flw|Okidata:\
> :br#2400:lp=/dev/tty0b:tr=\n:lf=/usr/adm/lpd-errs:
> sparc: SunOS 4.1.1
> erika: SunOS 4.0.3 ( i believe it's 3 )
> We tinkered for about an hour on this, and can't make heads or tails
> of it. Any suggestions?

The best answer can be summed up by Bill Stapleton, who quoth:

From: Bill Stapleton <>

You haven't set-up a spool directory or any of the related files. So,
you get the defaults, and eveything goes in one place, so the first
printer called looks in that place and prints everything it finds.
The way I handle it is to make subdirectories under the main spooling
directory, then tell lpd where they are. I don't have a Sun handy,
but this is about what you need to do:

        Find the main spooling directory, I believe it's /usr/spool/lpd,
        or /var/spool/lpd. "cd" there, make a separate directory for each
        printer (mkdir slp flp), make sure the ownership and permissions are
        the same as that on the parent. Then add the entries into your
        /etc/printcap file, so it looks something like:


Ideally, you want to do this for every printer on every machine,
including the remote machines, or you'll sometimes have the same
problems of files getting "mixed up". The directory the files get
put into is the *ONLY* way of tracing which printer the files were
sent to, so if you put the files from more than one printer into
the same directory...

Bill Stapleton


Once again, the List has come through, and our three printers are merrily printing concurrently. A few folks did mention that extra spaces in the printcap may cause problems. I left mine in, just to see what would happen, and it hasn't caused any problems yet (this after 3 days of operation). I'll keep the list posted if anything goofy happens.

Thanks to the following folks:

From: (Lothar Mueller) From: From: From: (David Sansom) From: (Torsten Lif) From: (Elmar Kurgpold) From: (Tom Poage) From: From: (Chris Keane) From:!oracodev!phil (P. Suematsu) From: ups! (Glenn Satchell) From: (Mike Raffety) From: From: (Dan Lorenzini) From: From: (Chuck Yerkes) From: G. Harrington)

---------------------.--------------------.-------------------------------- Dave Shevett | Unipress Software | "The shortest distance between Systems Jockey | Edison, NJ USA | two puns is a straight line..." | (908)287-2100 x921 | - Doc Webster

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:54 CDT