If you're really serious about writing an lpr or lpd, the source code for FreeBSD's versions is online here: http://www.FreeBSD.org/cgi/cvsweb.cgi/src/usr.sbin/lpr/ 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: http://cvs.cleveland.lug.net/module.pl?module=tn5250 Good luck. On Fri, 12 Jan 2001 firstname.lastname@example.org 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 > email@example.com > 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: firstname.lastname@example.org +---
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.