Path: utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: elliss@eecae.ee.msu.edu (Stew Ellis) Newsgroups: comp.sys.sun Subject: Re: HP IIP & SPARCstations Keywords: Formats Message-ID: <2164@brchh104.bnr.ca> Date: 25 Mar 91 22:00:00 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 47 Approved: Sun-Spots@rice.edu X-Original-Date: Sun, 24 Mar 91 23:45:29 GMT X-Refs: Original: v10n55 X-Sun-Spots-Digest: Volume 10, Issue 55, message 12 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu jeh@mech4.coe.northeastern.edu (James Hinds) writes: >I am involved with setting up a series of SUN SPARCstations for novice >Unix users. They are coming from DOS and bringing their HP printers with >them. I have just hooked up an original HP Deskjet to a Sun 3 running SunOS 4.1 and Openwindows 2. My printcap follows: lp|hplj|HP LaserJet:\ :lp=/dev/ttyb:\ :sd=/usr/spool/lp:\ :br#19200:pw#80:\ :ms=-parity,-cstopb,-clocal,-cread,crtscts,ixon,-opost:\ :sh:of=/usr/lib/hplaserjet: The of (/usr/lib/hplaserjet) consists of: /usr/bin/echo -n 'k2G' /usr/bin/cat if ($status == 0) then exit 0 else exit 1 endif NOTE: Before the characters k2G you need to perform the following commands: CTRL-V,CTRL-[,& This imbeds an escape code and & code into the file. These codes WILL NOT show up when you cat the file, only when you vi the file. Chmod 555 hplaserjet lpr a test file. I have successfully sent both ASCII and binary (xpr output of xwd) to the printer. I am having some trouble with ghostscript 2.11 but I suspect it is not the printcap or filter. Good luck. R.Stewart (Stew) Ellis / _______________________________/ elliss@frith.egr.msu.edu ENGINEERING & MANAGEMENT INSTITUTE