Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jul 1995 08:37:53 -0600
From:      kelly@fsl.noaa.gov (Sean Kelly)
To:        steinber@slinky.cs.nyu.edu
Cc:        questions@freebsd.org
Subject:   Re: lpd / printcap
Message-ID:  <9507231437.AA05210@emu.fsl.noaa.gov>
In-Reply-To: <Pine.SUN.3.91.950723082642.23045A-100000@slinky.cs.nyu.edu> (message from Joseph Steinberg on Sun, 23 Jul 1995 08:28:08 -0400 (EDT))

next in thread | previous in thread | raw e-mail | index | archive | help
Here's my printcap entry ... this is for a PostScript printer on the
first parallel port; the printer is named `ink':
------------------------------------------------------------------------
ink|Ink|INK|Panasonic KX-P4455 PostScript v51.4:\
	:lp=/dev/lpt0:sf:sd=/var/spool/lpd/ink:mx#0:sh:\
	:if=/usr/local/libexec/if-psonly:
------------------------------------------------------------------------

I made the spooling directory with these commands:
------------------------------------------------------------------------
	mkdir -p -m 770 /var/spool/lpd/ink
	chown daemon.daemon /var/spool/lpd/ink
------------------------------------------------------------------------

The file /usr/local/libexec/if-psonly is a simple shell script; don't
forget to make the script executable.
------------------------------------------------------------------------
#!/bin/sh
exec /bin/cat
------------------------------------------------------------------------

Permissions on /dev/lpt0:
------------------------------------------------------------------------
crw-------  1 root  wheel   16,   0 Jul 23 08:31 /dev/lpt0
------------------------------------------------------------------------

Tested, and it works.

-- 
Sean Kelly
NOAA Forecast Systems Lab, Boulder Colorado USA

I got tired of calling the movies to listen to what is playing so I
bought the album. -- Steven Wright



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9507231437.AA05210>