[I tried sending this before, but I didn't see it appear on the
archive - maybe because I wasn't subscribed to the list.
So I have subscribed and am trying again]
Hi,
I have Debian/potato installed on our linux machines here, and we
choose to use lprng for printing, so that means version 3.6.12.
However, that has problems working with acroread (related to handling
of SIGCHLD) which have been fixed in later releases, so I decided that
it was time to upgrade.
First I tried 3.7.4 which seems to be the latest. This is the version
included with the upcoming release of Debian - woody.
I tried both the woody version, and a version compiled from original
source, and neither of them worked for me.
The problem relates to remote printing.
If I use
lpr -Pprinter@remotehost
then everything works fine.
But if I have
printername
:client
:lpr_bounce
:lp=printer@remotehost
:if=/usr/local/lib/myfilter
in /etc/printcap and use lpr -Pprintername
then lpr tries to filter the job and send it, but the receiving lpd
rejects it. The reason that it rejects it is that the data file is
sent with the name "<NULL>".
For example: (This was collected with tcpdump)
199 cfA253dulcimer.orchestra.cse.unsw.EDU.AU
Hdulcimer.orchestra.cse.unsw.EDU.AU
Proot
J(STDIN)
CA
Aroot@dulcimer+253
D2001-06-08-14:46:16.425
Qlaser3
N(STDIN)
fdfA253dulcimer.orchestra.cse.unsw.EDU.AU
UdfA253dulcimer.orchestra.cse.unsw.EDU.AU
13264 <NULL>
%!PS-Adobe-1.0
....
Here was see a 199 byte control file called "cfA253dulcimer.orchestra.cse.unsw.EDU.AU"
and the start of a 13264 byte data file called "<NULL>" while
it should be called "dfA253dulcimer.orchestra.cse.unsw.EDU.AU".
Interestingly, if I try to print 2 files:
lpr -Plaser3 /tmp/1 /tmp/2
Then the control file looks like:
296 cfA280dulcimer.orchestra.cse.unsw.EDU.AU
Hdulcimer.orchestra.cse.unsw.EDU.AU
Proot
J/tmp/1,/tmp/2
CA
Aroot@dulcimer+280
D2001-06-08-14:54:03.957
Qlaser3
N/tmp/1
fdfA280dulcimer.orchestra.cse.unsw.EDU.AU
N/tmp/2
fdfB280dulcimer.orchestra.cse.unsw.EDU.AU
UdfA280dulcimer.orchestra.cse.unsw.EDU.AU
UdfB280dulcimer.orchestra.cse.unsw.EDU.AU
and mentions two data files, but only one data file is sent:
26536 <NULL>
%!PS-Adobe-1.0
.....
--------------------------
So, I decided to give up on 3.7.4 and try the latest in the 3.6 line:
3.6.26.
This worked much better, but not perfectly.
When I
Run netscape
View a postscript document, for which netscape runs "gv"
and try to print that document, lpr complains:
Max_open: fd 26 and old Max_fd 9
It does this simply becuase netscape+gv leave lots of
file descriptors open, which doesn't seem like a good reason to
fail.
I have "fixed" it with the ugly patch:
--- ./src/common/child.c 2001/06/06 01:32:54 1.1
+++ ./src/common/child.c 2001/06/06 01:33:07
@@ -270,7 +270,7 @@
void Max_open( int fd )
{
if( fd > 0 ){
- if( fd > Max_fd+10 ){
+ if( fd > Max_fd+100 ){
FATAL(LOG_ERR) "Max_open: fd %d and old Max_fd %d", fd,
Max_fd);
}
if( fd > Max_fd ) Max_fd = fd;
and will be using this version, but I thought you'all should know that
there are problems (if you don't know already).
Thanks,
NeilBrown
P.S If the debian lprng maintainer happens to be listen: please
don't let woody out with 3.7.4
P.P.S www.lprng.org seems well out of date. The tarballs that it
points to don't exist.
NB
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------