From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,c49f19cc2fae6b49 X-Google-Attributes: gidfa528,public From: "Ray T." Subject: Re: Setting up a LaserJet Printer with a JetDirect Card Date: 2000/06/24 Message-ID: <3954E61B.20FE6CA7@aik.tec.sc.us>#1/1 X-Deja-AN: 638482668 Content-Transfer-Encoding: 7bit References: <8hqp5f$qqp$1@nnrp1.deja.com> <39474E9B.579D7992@physik.uni-marburg.de> To: jim comstock X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@infoave.net X-Trace: news3.infoave.net 961865213 23299 199.4.146.11 (24 Jun 2000 16:46:53 GMT) Organization: Info Avenue Internet Services Mime-Version: 1.0 NNTP-Posting-Date: 24 Jun 2000 16:46:53 GMT Newsgroups: comp.unix.tru64 Hi Jim, Great idea. But I must be missing something. It just sits there. lpc stat shows "printer is on device '/dev/nul' speed -1 queuing is enabled printing is enabled 1 entry in spool area waiting for dtel_land to become ready (offline?)" The queue it is trying to print through works fine. If you have any ideas of what to check, I would appreaciate it. Ray T. jim comstock wrote: > > You were'nt clear if you're printing straight text or postscript files, and > if you're using lpd or tcp/ip printing. We do straight text tcp/ip printing > (reports, etc.). > For that, you do the following: > > 1) HP JetDirect receives tcp/ip print jobs on port 9100. Put an entry in > your > /etc/services file. > > 2) Put an entry in your /etc/hosts file for the printer. > > 3) Make an entry in your /etc/printcap file for the portrait printer > > 4) Create a file in the /usr/lbin directory that contains the escape > sequence > to put the printer into landscape. > > 5) Create a shell script to concatenate the print job with the escape > sequence and pipe it to the printer. > > Here's what one of ours looks like: > Printcap entry for portrait: > > lp217|217|ATLBIGJOBN_P:\ > :ct=tcp:\ > :if=/usr/lbin/hplaserof:\ > :lf=/usr/adm/lp216err:\ > :lp=@ATLBIGJOBN/hplaser:\ > :mx#0:\ > :of=/usr/lbin/hplaserof:\ > :pw#80:\ > :pl#55:\ > :rw:\ > :sd=/usr/spool/lpd216:\ > :xf=/usr/lbin/xf: > # tcp/ip entry for ATLBIGJOBN landscape > lp218|218|ATLBIGJOBN_L:\ > :lp=/dev/null:\ > :mx#0:\ > :of=/usr/lbin/landfil218:\ > :sd=/usr/spool/lpd218:\ > :xf=/usr/lbin/xf: > > Script file /usr/lbin/landfil218 > > #! /bin/csh > /bin/cat /usr/lbin/addland - | lpr -h -Plp217 > > /usr/lbin/addland: > ^[(s16.67H ^[&l1O > > Note: > > the ^[ are escape's. > > This seems to work well for us. > > Hope this helps. >