Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!cs.utexas.edu!rice!rice!sun-spots-request From: jkg@romeo.cs.duke.edu (Jamie Gobble) Newsgroups: comp.sys.sun Subject: Can't get CAP to print from Sun4 (SunOS 4.0.3) - Help? Keywords: Networks Message-ID: <1990Aug1.011748.1691@rice.edu> Date: 31 Jul 90 16:38:18 GMT Sender: sun-spots-request@rice.edu Organization: Sun-Spots Lines: 58 Approved: Sun-Spots@rice.edu Originator: spots@titan.rice.edu X-Sun-Spots-Digest: Volume 9, Issue 288, message 3 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@dumc.neuro testprinter=LaserWriter II NT:LaserWriter@*