Right.... This was a 'cut and paste-o' and I think Frank sent me
the patch already...
> From [EMAIL PROTECTED] Wed Nov 15 01:10:01 2000
> From: Frank Botte <[EMAIL PROTECTED]>
> To: lprng <[EMAIL PROTECTED]>
> Subject: Re: LPRng: Problem with lp=|/path/to/program after 3.6.23
> Date: Wed, 15 Nov 2000 09:06:01 +0100
>
>
> Hello,
>
> i have noticed the same problem. There is some code missing in the
> file lpd_jobs.c. The filedescriptor is not set. Just add the following
> code at line 2251 (Version 3.6.26) of the lpd_jobs source.
>
> if( (close( in[0] ) == -1 ) ){
> LOGERR_DIE(LOG_INFO)"Printer_open: close(%d) failed", in[0]);
> }
> /* the following line is missing since 3.6.24 */
> device_fd = in[1] ; /* patched by Frank Botte */
> break;
>
> This patch worked for me .....
>
> bye
> Frank Botte
>
>
> ____________________________ Antwort-Abtrennung ________________________________
> Betreff: LPRng: Problem with lp=|/path/to/program after 3.6.23
> Autor: [EMAIL PROTECTED] bei INTERNET
> Datum: 15.11.00 01:53
>
>
> I have some old X terminals which are useful as print servers; you access
> them with a script like:
>
> #!/bin/sh
> /bin/cat | /usr/bin/rsh xterm opendev /dev/pp0
>
> and them put "lp=|/path/to/script" in your printcap. This mostly works[1]
> in 3.6.23, but in 3.6.24 and 3.6.26 it fails. The error goes:
>
> Status: opening device '|/etc/print-xt04' at 11:09:59.055
> Status: cannot open '|/etc/print-xt04' - 'No Error', attempt 1, sleeping 10 at
> 11:09:59.056
>
> Simply downgrading to 3.6.23 makes this work again. The script _is_ being
> called but no input is ever being passed to it.
>
> I'm running Red Hat Linux 7.0, the LPRng RPMs are straight from
> ftp.astart.com. (Well, the 3.6.24 one came with RedHat, but it does some
> things differently and I only used it once to pinpoint the version where
> the problem started.)
>
> Any help would be appreciated. I'm happy to crank up debugging or do other
> hacks as needed.
>
> 1) For some reason the jobs aren't deleted after they've been printed, but
> this is at worst a minor issue.
>
> - J<
>
> -----------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------
>
> -----------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------
>
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------