Date: Tue, 26 Feb 2013 19:06:46 +0100 From: Matthias Apitz <guru@unixarea.de> To: freebsd-ports@freebsd.org Subject: Re: FreeBSD port for redirecting printer Message-ID: <20130226180645.GA1161@tiny.Sisis.de> In-Reply-To: <alpine.BSF.2.00.1302261814330.27474@wojtek.tensor.gdynia.pl> References: <alpine.BSF.2.00.1302261814330.27474@wojtek.tensor.gdynia.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
El día Tuesday, February 26, 2013 a las 06:16:37PM +0100, Wojciech Puchar escribió: > i need to emulate print server on device running FreeBSD (which do other > things in the same time) - as standard port 9100 not lpd. > > Can it be done. > > yes i know i can just add to inetd.conf cat >/dev/ulpt0 BUT > > - it will accept a connection even if printer is not connected > - it doesn't work bidirectionally (usually not needed but anyway) > > Anyone knows a program from ports (or not) to do this? Install CUPS (from our ports), catch the incoming data on 9100 with ncat(1) (from ports) and pipe the data to a "lpr -P.... -o raw" command (of CUPS) which puts a job on the queue for your printer until the printer comes ready. matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: guru@unixarea.de | - Nerver being an iSlave WWW: http://www.unixarea.de/ | - No proprietary attachments, no HTML/RTF in E-mail phone: +49-170-4527211 | - Respect for open standards
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130226180645.GA1161>