Date: Tue, 26 Feb 2013 18:43:56 -0700 (MST) From: Warren Block <wblock@wonkity.com> To: Matthias Apitz <guru@unixarea.de> Cc: freebsd-ports@freebsd.org Subject: Re: FreeBSD port for redirecting printer Message-ID: <alpine.BSF.2.00.1302261843380.49330@wonkity.com> In-Reply-To: <20130226180645.GA1161@tiny.Sisis.de> References: <alpine.BSF.2.00.1302261814330.27474@wojtek.tensor.gdynia.pl> <20130226180645.GA1161@tiny.Sisis.de>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --3512871622-2026383708-1361929437=:49330 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Tue, 26 Feb 2013, Matthias Apitz wrote: > 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. netcat is already in base as nc(1). --3512871622-2026383708-1361929437=:49330--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1302261843380.49330>