Date: Mon, 4 Sep 1995 23:12:45 -0700 (PDT) From: Gary Clark II <gclarkii> To: sdfgdfs@vt.edu Cc: freebsd-questions@freefall.FreeBSD.org Subject: Re: ps-dj converter Message-ID: <199509050612.XAA07014@freefall.freebsd.org> In-Reply-To: <41949.sdfgdfs@mail.vt.edu> from "sdfgdfs@vt.edu" at Sep 4, 95 11:38:34 am
next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
Here is message I grabbed off of usenet. It DOES work!!
May need tweaking here or there but...:)
Randall Hopper | Picker International
Senior Software Engineer | CT Visualization and Connectivity
rhh@ct.picker.com | FAX: (216) 473-7098
*** WINDOWS from the folks who brought you EDLIN ***
------------------------------/etc/printcap-----------------------------------
# @(#)printcap 5.3 (Berkeley) 6/30/90
#lp|local line printer:\
# :lp=/dev/lp:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:
lp|LaserJet 4P Printer (Raw):\
:lp=/dev/lpt0:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:\
:mx#0:ff=\033E\033&k2G:fo:sh:tr=\033E:
text|LJ4P w/ Unix2Dos Text Preprocess:\
:lp=/dev/null:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:\
:of=/usr/local/bin/textlj:\
:mx#0:sf:sh:
ps|LJ4P w/ Ghostscript PS->PCL Preprocess:\
:lp=/dev/null:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:\
:of=/usr/local/bin/gslj:\
:mx#0:sf:sh:
#text|LJ4P w/ Unix2Dos Text Preprocess:\
# :lp=/dev/null:\
# :if=/usr/rhh/bin/unix2dos:\
# :rm=localhost:\
# :rp=lp:
#ps|LJ4P w/ Ghostscript PS->PCL Preprocess:\
# :lp=/dev/null:\
# :if=/usr/local/bin/gslj:\
# :rm=localhost:\
# :rp=lp:
------------------------------/usr/local/bin/textlj----------------------------
#!/bin/sh
PRINTER=lp
PATH=/usr/bin:$PATH
export PRINTER PATH
unix2dos | lpr -h
--------------------------/usr/local/bin/gslj--------------------------------
#!/bin/sh
TMPDIR=/usr/tmp
PRINTER=lp
GSLIB=/usr/local/lib/ghostscript/fonts
PATH=/usr/local/bin:/usr/bin:$PATH
export TMPDIR PRINTER GSLIB PATH
#exec gs -q -sDEVICE=laserjet -r300 -dNOPAUSE -- gslp.ps $*
#exec gs -sDEVICE=ljet4 -dNOPAUSE gslp.ps - > /usr/rhh/out 2>&1
exec gs -q -sDEVICE=ljet4 -dNOPAUSE -sOutputFile=\|lpr gslp.ps -
--
Gary Clark II (N5VMF) | FreeBSD support and service
gclarkii@FreeBSD.ORG | mail info@gbdata.com for information
FreeBSD FAQ at ftp.FreeBSD.ORG in
~pub/FreeBSD/FreeBSD-current/src/share/FAQ/Text/FreeBSD.FAQ
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509050612.XAA07014>
