I am trying to get LPRng set up with the above set of tools. 

foomatic seems to be set up properly. I have put this line into the ppd 
file:
*FoomaticRIPPostPipe: "| /usr/bin/nc -w 1 lanier 9100"
(where "lanier" is the DNS name of the jetdirect box)

if I run the following command, the print works (that is, the page prints 
out):
cat test.ps | foomatic-rip --lprng -Plptest  \
         /etc/lprng/Generic-PCL_5e_Printer-ljet4.ppd

albeit I do see an error message:

Closing renderer
renderer PID pid4=1513
renderer command: /usr/bin/gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE 
-sDEVICE=ljet4 -sOutputFile=- - | /usr/bin/perl -p -0033 -e " 
s/^&l\d+[aA]/$&/; "
lanier.coreel.com [192.168.10.140] 9100 (?) : Connection refused
JCL: <job data>
 
KID3 finished
KID3 exited with status 0



I am using a generic PCL5e PPD file, downloaded from the 
linuxprinting.org website. 

Based on what I saw in a website, I have the following printcap file

lptest: \
        :sd=/var/spool/lpd/lptest: \
#       :lp=lanier%9100: \
        :lp=/dev/null: \
        :if=/usr/bin/foomatic-rip: \
        :filter_options= --lprng $Z 
                   /etc/lprng/lprng/Generic-PCL_5e_Printer-ljet4.ppd: \
#        :ppd=/etc/lprng/Generic-PCL_5e_Printer-ljet4.ppd: \
        :mx#0:sh:

(Note there is some line wrapping in the email. In the original file the 
"filter_options is one line, including the ppd filename. 

I have also tried this with a printcap file more like:

lptest: \
        :sd=/var/spool/lpd/lptest: \
#       :lp=lanier%9100: \
        :lp=/dev/null: \
        :if=/usr/bin/foomatic-rip: \
        :ppd=/etc/lprng/Generic-PCL_5e_Printer-ljet4.ppd: \
        :mx#0:sh:

Does anyone have any ideas what might be wrong? 

I have started lpd with "-D3" and see no error messages. The end of the 
logfile (after attempting a print) looks like:
2004-05-07-16:40:36.774 newcoremail [1963] Waiting  lpd: starting select 
timeout 'yes', 524 sec, max_socks 10
2004-05-07-16:40:36.774 newcoremail [1963] Waiting  lpd: select returned 
1, error 'No Error'
2004-05-07-16:40:36.774 newcoremail [1963] Waiting  lpd: fd 9 readable
2004-05-07-16:40:36.774 newcoremail [1963] Waiting  Read_server_status: 
starting
2004-05-07-16:40:36.774 newcoremail [1963] Waiting  Read_server_status: 
select status 1
2004-05-07-16:40:36.774 newcoremail [1963] Waiting  Read_server_status: 
read status 1
2004-05-07-16:40:36.774 newcoremail [1963] Waiting  Dump_line_list: 
Read_server_status - input - 0xbffff6f0, count 0, max 0, list 0x0
2004-05-07-16:40:36.774 newcoremail [1963] Waiting  Read_server_status: 
select status 0
2004-05-07-16:40:36.774 newcoremail [1963] Waiting  lpd: LOOP START
2004-05-07-16:40:36.774 newcoremail [1963] Waiting  lpd: checking for 
scan, start_pid -1, start_fd -1, Poll_time_DYN 600, elapsed_time 76, 
Started_server 1, Force_poll 0
2004-05-07-16:40:36.774 newcoremail [1963] Waiting  lpd: Started_server 1, 
last_fork_pid_value 0, active servers 0, max 511
2004-05-07-16:40:36.774 newcoremail [1963] Waiting  lpd: starting select 
timeout 'yes', 524 sec, max_socks 10




Thanks, 

Simon

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to