From: "Ray T." <lists@aik.tec.sc.us>
To: jim comstock <jimc@gw.total-web.net>
Subject: Re: Setting up a LaserJet Printer with a JetDirect Card
Date: 2000/06/24 [thread overview]
Message-ID: <3954E61B.20FE6CA7@aik.tec.sc.us> (raw)
In-Reply-To: skit8agnis4110@corp.supernews.com
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.
>
next prev parent reply other threads:[~2000-06-24 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-09 4:00 Setting up a LaserJet Printer with a JetDirect Card Gary Hansford
2000-06-14 4:00 ` Ralf Eichmann
2000-06-14 4:00 ` Jan Wysocki
2000-06-15 4:00 ` jim comstock
2000-06-24 4:00 ` Ray T. [this message]
2000-06-14 4:00 ` Bryan Mills
2000-06-29 4:00 ` Rob Hamilton
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox