Can't get CAP to print from Sun4 (SunOS 4.0.3) - Help?

Jamie Gobble jkg at romeo.cs.duke.edu
Wed Aug 1 02:38:18 AEST 1990


I'm trying to use CAP (Columbia AppleTalk Package) to print to the
laserwriters on our localtalk zone, but it isn't working - not completely
that is.  I can print using lwpr, but lpr does nothing but place the the
file in the print queue - the wrong queue at that.  By wrong queue I mean
not the one I specified in printcap with sd.  Specifically everything is
place in /usr/spool/lpd; rather than the directory identified by sd.

My guess is that I've done something wrong with printcap, but I'm really
not sure what is wrong.  I would appreciate any help you could give me.

				Thanks,
				Jamie.

p.s.  Cayman has been very helpful, but they're stumped too.
      No doubt I've screwed something simple up.

System description follows:

I'm working on a SparcStation 1 with SunOS 4.0.3.  It communicates with
our LocalTalk zone via a GatorBox running GatorShare 1.4.1.  The CAP
programs atlook, atlooklws, getzones and lwpr all work correctly.  Our
version of CAP is 5.0. 

/etc/printcap:
--------------

#
4|lp4|alw2|3rdFloorBryan|LaserWriterIINT:\\
	:lp=/dev/null:\			# spool device
	:sd=/usr/spool/alw2:\		# spool directory
	:pl#72:pw#85:\			# page length and width
	:sf:\				# suppress form feeds
	:lf=/usr/adm/alw2-errs:\	# log file
	:af=/usr/adm/alw2.acct:\	# accounting file
	:if=/usr/local/cap/alw2:\	# input filter; a shell script
	:of=/usr/local/cap/papof:	# output filter
#
5|testprinter|Test Printer:\
	:lp=/dev/null:\
	:if=/usr/local/cap/testprinter:


/usr/local/cap/alw2:
--------------------

#!/bin/sh
BANNERLAST=1
PSTEXT=/usr/local/bin/lptops
export BANNERLAST PSTEXT
# pass the printer name and the arguments lpd passed us
/usr/local/cap/papif -P alw2 $*


.../etc/cap.printers:
--------------------

alw2=LaserWriter II NT:LaserWriter at dumc.neuro
testprinter=LaserWriter II NT:LaserWriter@*



More information about the Comp.sys.sun mailing list