From: sna@prophet.pharm.pitt.edu (Stewart N. Abramson)
Newsgroups: comp.protocols.appletalk
Subject: Need help w/CAP lwsrv
Date: 8 Oct 92 16:52:59 GMT
Distribution: na
Organization: University of Pittsburgh


Could someone help me with the CAP lwsrv program.  We have a Sun4 (os 4.1.2) and 
MacUs (sys 7) all on the same ethernet.  I have installed CAP on the Sun, and I
have the atis and aarpd deamons running.  I can do the atlook and atlooklws commands
and get all the appropriate printers and servers etc.  However, if I run the lwsrv with
the following command;

lwsrv -n bobo -p lp -a /usr/local/cap/procsets -f /usr/local/cap/LWPlusFonts -l
/usr/local/cap/lwlog

or with;

lwsrv -n bobo -p lp -a /usr/local/cap/procsets -f /usr/local/cap/LWPlusFonts -l
/usr/local/cap/lwlog -N

(I have an empty directory called /usr/local/cap/procsets and I moved the file 
LWPlusFonts that came with the CAP program to /usr/local/cap/LWPlusFonts.)

I get an appropriate deamon, I can see the bobo laserwriter in my Mac chooser, and
if I print a document, I see it on the Sun for a few seconds with the lpq -Pps command.

HOWEVER, the document does not print and instead I get the messages shown below
in my log files (R/usr/local/cap/lwlogS specified in the lwsrv command and 
R/var/spool/lw/logS specified in the printcap file.)

In addition, the size of the document indicated with the lpq -Pps command is much
smaller than if I make a postscript file on the mac, FTP that file to the sun, and then
print that file with the lp command.  Does the fact that we are using SunUs Newsprint
program have anything to do with this problem?

Enclosed is some relevent information taken from our Sun:

=================================================

prophet:/home/sna/cap60/applications/lwsrv-> more /etc/printcap
#
# This is a sample of printcap entries used by various printers/plotters.
# All entries have been commented out to avoid complaints from the line
# printer daemon about printers that don't really exist.
#
# entry for a local PostScript printer
ps|lp|lw|prophet_lp|prophet_ps|PostScript printer:\
        :br#9600:rw:fc#0000374:\
        :fs#0000003:xc#0:xs#0040040:\
        :mx#0:sf:sh:\
        :lp=/dev/ttyb:\
        :sd=/var/spool/lw:\
        :lf=/var/spool/lw/log:\
        :af=/var/spool/lw/acct:\
        :if=/usr/export/newsprint/lpd/if:\
        :gf=/usr/export/newsprint/lpd/gf:\
        :nf=/usr/export/newsprint/lpd/nf:\
        :tf=/usr/export/newsprint/lpd/tf:\
        :rf=/usr/export/newsprint/lpd/rf:\
        :vf=/usr/export/newsprint/lpd/vf:\
        :cf=/usr/export/newsprint/lpd/cf:\
        :df=/usr/export/newsprint/lpd/df:\
        :of=/usr/export/newsprint/lpd/of:

=================================================

 3547 ?  S     0:30 /home/sna/cap60/support/ethertalk/aarpd le0 PITTNET2
 3554 ?  S     4:33 atis

=================================================

prophet:/home/sna/cap60/applications/lwsrv-> lpq -Pps
no entries

prophet:/home/sna/cap60/applications/lwsrv-> lpq -Pps
lp is ready and printing
Rank   Owner      Job  Files                                 Total Size
active root       511  /tmp/lwsrva07364                      67207 bytes

prophet:/home/sna/cap60/applications/lwsrv-> lpq -Pps
lp is ready and printing
Rank   Owner      Job  Files                                 Total Size
active root       511  /tmp/lwsrva07364                      67207 bytes

prophet:/home/sna/cap60/applications/lwsrv-> lpq -Pps
no entries

=================================================

prophet:/home/sna/cap60/applications/lwsrv-> more /var/spool/lw/log


NEW LP LOG FILE 10/92





printer startup
%%[ status: idle ]%%
sending file pipe.end
%%[ status: busy; source: serial 25 ]%%
%%[ Error: invalidaccess; OffendingCommand: setdefaulttimeouts ]%%
%%[ Error: invalidaccess; OffendingCommand: setdefaulttimeouts ]%%
/usr/export/newsprint/printer_classes/PostScript/bin/postio: PostScript Error

=========================================================

prophet:/home/sna/cap60/applications/lwsrv-> more /usr/local/cap/lwlog
This is a log file run by the lwsrv deamon.
If the command to start the lwsrv deamon has the -l option
set to be -l /usr/loca/cap/lwlog



lwsrv: Starting print job for bobo
lwsrv: simple: Using ProcSet "(AppleDict md)" 71 0 = FoundProcSet.718488987
lwsrv: Sending fontList: 38 entries
lwsrv: simple: procset "(AppleDict md)" 71 0 already known
lwsrv: Printing job: Ars Gratia (B&W); user achr; on Thu Oct  8 10:12:20 1992

===============================================