From owner-freebsd-questions Sun Jul 23 07:34:22 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id HAA03269 for questions-outgoing; Sun, 23 Jul 1995 07:34:22 -0700 Received: from fslg8.fsl.noaa.gov (fslg8.fsl.noaa.gov [137.75.131.171]) by freefall.cdrom.com (8.6.11/8.6.6) with SMTP id HAA03263 for ; Sun, 23 Jul 1995 07:34:19 -0700 Received: by fslg8.fsl.noaa.gov (5.57/Ultrix3.0-C) id AA21843; Sun, 23 Jul 95 08:34:17 -0600 Received: by emu.fsl.noaa.gov (1.38.193.4/SMI-4.1 (1.38.193.4)) id AA05210; Sun, 23 Jul 1995 08:37:53 -0600 Date: Sun, 23 Jul 1995 08:37:53 -0600 From: kelly@fsl.noaa.gov (Sean Kelly) Message-Id: <9507231437.AA05210@emu.fsl.noaa.gov> To: steinber@slinky.cs.nyu.edu Cc: questions@freebsd.org In-Reply-To: (message from Joseph Steinberg on Sun, 23 Jul 1995 08:28:08 -0400 (EDT)) Subject: Re: lpd / printcap Sender: questions-owner@freebsd.org Precedence: bulk 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