Hi again,
Thanks to all those who replied, including:
George Gallen , Paul Crittenden
Peter Stern , Werner Rost
Udo de Boer
The LAT printer now prints fine (and quickly)
The original question was:
I'm trying to setup a LAT printer under 4.0d , and I'm
*almost* there, apartfrom the last step.
I haven't seen the lat server yet , and I haven't been able
to find outwhether it's SVR4 or a BSD type.
So I created a few devices for both, using latsetup, and
"mknod /dev/lat/620 c 5 620"
I then configured the device via..
latcp -A -p 620 -H SERVER_NAME -R PORT_NAME
(620 under /dev/lat/... I haven't tried a tty yet)
Which seemed to work fine.
My question is , is there any particular trick to setting up
the printcap
-----------------------------
The Answer:
-----------------------------
I ended up using a sample of a working LAT setup provided by George.
Also, as pointed out, double check that the printcap line
ct=LAT is in *CAPITALS* ie. NOT lower case (ct=lat)
Using Georges working copy, I modified only the port number and name and
ended up with:
ac006:\
:lf=/usr/adm/ac006err:\
:br#9600:\
:ct=LAT:\
:fc#0177777:\
:fs#023:\
:lp=/dev/lat/620:\
:mx#0:\
:pl#66:\
:pw#232:\
:sh:\
:sd=/usr/spool/ac006:
Plus, as pointed out, if you change any LAT setup, it's best to delete ALL
pending jobs first, or things may go a bit haywire.
Then I used lpc, and cleared the jobs in the queue. I then went in to
latsetup, and restarted the service.
Then, just to be sure, went back to lpc and restarted the queue.
It now works fine!
Commands to help check your LAT setup...
tcpdump lat --> Shows all the LAT packets if they're there.
latcp -d -P --> Lists the LAT ports.
latsetup --> Try stopping and starting the service.
lpc --> Try stop/clean/start to reset the printer
file <device> --> This should show something like a
Character Special LAT terminal in the description.
Although I didn't end up having to try it, Paul suggested the following
printcap entries:
ts - the terminal server name
op - the port on the terminal server
This isn't in the man pages, but IS documented in older Digital Sysadmin
manuals.
I might try this later on anyway, as I'm curious to see how it works
(and why it isn't documented anymore !?!?!)
Thanks again for the help provided,
Cheers,
Dirk.
Received on Tue Jul 25 2000 - 03:21:57 NZST