FreeBSD port for redirecting printer
Matthias Apitz
guru at unixarea.de
Tue Feb 26 18:06:59 UTC 2013
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 at 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
More information about the freebsd-ports
mailing list