• Subject: Re: lpd protocol
  • From: Scott Klement <klemscot@xxxxxxxxxxxx>
  • Date: Fri, 12 Jan 2001 16:51:54 -0600 (CST)

If you're really serious about writing an lpr or lpd, the source code for
FreeBSD's versions is online here:

FreeBSD is directly derived from the original Berkeley source that lpr/lpd
was developed for, so the source code would be the "ultimate
documentation". :)

For communicating with an AS/400, however, the tn5250e protocol would
probably work better.  You can see RFC1205 and RFC2877 for information on
this -- however, since it involves parsing the 5250 datastream, and then
parsing SCS data, its about as much fun as hitting yourself over the head
with a shovel.

The Linux tn5250 project has a daemon that will receive print requests and
pipe them to a program of your choice, which might be ideal if you're
running Linux, FreeBSD or similar flavor of Unix.  

You can grab a copy of that over here:

Good luck.

On Fri, 12 Jan 2001 janusz.prusaczyk@big.pl wrote:

> Can somebody point me to good documentation on lpd protocol? I want to write
> lpd daemon in Perl to collect spool data from AS/400. The only documentation
> I have is RFC1179 which is unsufficient.
> ***************************
>   Janusz David Prusaczyk
>   janusz.prusaczyk@big.pl
>   tel. +48 (22) 657 57 48
> ***************************

| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.