Article View: comp.sys.sun
Article #7281Re: Sun Sparc2 and HP Laserjet IIp ??
From: Joe Smith
Date: Wed, 27 Mar 1991 21:35
Date: Wed, 27 Mar 1991 21:35
59 lines
3508 bytes
3508 bytes
In article <1607@brchh104.bnr.ca> rit!kodak!ashton@b56vxg.dnet writes:
>Sparc2. Connected to this beast is a HP Laserjet IIp
>printer via the serial interface (ttya).
This is how we got our Laserjet working, after installing Transcript.
# Entry For HP-Laserjet IIID located in C5-275
0|lp|printer|ps|PS|postscript|PostScript|Xoanan|xoanan:\
:rm=arrow:lp=/dev/laserjet:sd=/var/spool/lp.0:\
:lf=/var/adm/lp-log:af=/var/adm/lp.acct:\
:br#19200:rw:fc#0000374:fs#0000003:xc#0:xs#0040040:mx#0:sf:sb:\
:if=/usr/local/lib/ps/psif:\
:of=/usr/local/lib/ps/psof:gf=/usr/local/lib/ps/psgf:\
:nf=/usr/local/lib/ps/psnf:tf=/usr/local/lib/ps/pstf:\
:rf=/usr/local/lib/ps/psrf:vf=/usr/local/lib/ps/psvf:\
:cf=/usr/local/lib/ps/pscf:df=/usr/local/lib/ps/psdf:
Here is the change to pscf to make it do special paper handling for
requests that were spooled with "lpr -c". (I'm not sure where "sun2ps"
came from; it convers Sun raster files to PostScript for doing
screendumps.)
1a2,18
> #[TYM] This is psint.sh with TYMNET modifications:
> #[TYM] 08-Feb-91/carl Make psvf run 'sun2ps' instead of 'psbad'.
> #[TYM] 14-Feb-91/jms Output 'duplex.pro' when "lpr -c file" specified.
> #
> #[TYM] When the banner is printed, lpd invokes "psof -w132 -l66" which in
> #[TYM] turn invokes "psbanner -P `basename $cwd` >/dev/lp" with stdin of just
> #[TYM] "arrow:jms Job: /etc/printcap Date: Thu Feb 14 17:26:59 1991^J^Y^A".
> #[TYM] Using "lpr -l file" sets the "-c" option to psif to print control chars:
> #[TYM] "psif -c -w132 -l66 -i0 -n jms -h arrow /var/adm/lp.acct <file >/dev/lp"
> #
> #[TYM] When using the top output tray of a LaserJet IIID, be sure to create
> #[TYM] a file called ".options" in the spool directory that says:
> #[TYM] REVERSE= # Don't reverse pages when top tray is active.
> #[TYM] BANNERFIRST=1 # Output the banner before the first page,
> #[TYM] BANNERLAST=0 # and not after the last page.
> #[TYM] pscf_file=$PSLIBDIR/duplex.pro # Set duplex mode if "lpr -c"
> #
16a34
> pscf_file=/dev/null #[TYM] Should be set to "duplex.pro" in .options file
41c59,60
< -c) ;;
---
> -c) ;; # This is set by "lpr -l" to print control characters.
> # Not to be confused with "lpr -c" which calls pscf.
75c94,97
< psvf|pscf|psdf|psrf) echo "$prog: filter not available." 1>&2 ;
---
> psvf) /usr/local/bin/sun2ps -p | $comm ;; #[TYM] sunraster file
> pscf) cat $pscf_file >>.banner #[TYM] Alternate paper handling.
> exec $comm ;; #[TYM] Use "lpr -c" to get this.
> psdf|psrf) echo "$prog: filter not available." 1>&2 ;
Joe Smith (408)922-6220 | SMTP: jms@tardis.tymnet.com or jms@gemini.tymnet.com
BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms
PO Box 49019, MS-C51 | BIX: smithjoe | CA license plate: "POPJ P," (PDP-10)
San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga 3000 speaks for me."
Technical Details
Message-ID:
<2211@brchh104.bnr.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: jms@tardis.tymnet.com (Joe Smith) Newsgroups: comp.sys.sun Subject: Re: Sun Sparc2 and HP Laserjet IIp ?? Keywords: Formats Message-ID: <2211@brchh104.bnr.ca> Date: 27 Mar 91 21:35:00 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 59 Approved: Sun-Spots@rice.edu X-Original-Date: Tue, 26 Mar 91 21:49:53 PST X-Refs: Original: v10n21 X-Sun-Spots-Digest: Volume 10, Issue 55, message 13 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu