tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Printing Using LAT
@ 1995-07-03  9:23 diarra
  0 siblings, 0 replies; only message in thread
From: diarra @ 1995-07-03  9:23 UTC (permalink / raw)
  To: tru64-unix-managers

Hi,

Bellow is my original message:

----- Begin Included Message -----

From diarra Mon Jun 26 17:46:31 1995
To: diarra
Subject: Printing Using LAT
Content-Length: 1474
X-Lines: 62

Hello managers,

I have a Declaser 1152 connected to a LAT DECserver 90M. I have problems
configuring my OSF/1 system to print through LAT.

I a m working under OSF/1 V2.0:

root@# uname -r -s -m
OSF1 V2.0 alpha

I have used lprsetup to configure my printcap:

root# cat /etc/printcap
mlaser|lp10:\
        :br#9600:\
        :ct=LAT:\
        :fc#0177777:\
        :fs#03:\
        :if=/usr/lbin/ln07rof:\
        :lf=/usr/adm/lp10err:\
        :lp=/dev/tty0G:\
        :mc#20:\
        :mx#0:\
        :of=/usr/lbin/ln07rof:\
        :pl#66:\
        :pw#80:\
        :rw:\
        :sd=/usr/spool/lpd10:\
        :xc#0177777:\
        :xf=/usr/lbin/xf:\
        :xs#044000:

I have used latsetup to create the LAT device /dev/tty0G. This device is not
included in the /etc/inittab. I have add nothing to the /etc/latstartup.conf
file.

I have used the latcp command to assign my local LAT dev to the remote port
on the Terminal Server.

root# latcp -A -p tty0G -H <TSname> -R Port_8

<TSname> is a valid name associated with my DECserver.

root# date | lpr -P mlaser
root#  lpstat -a
...
mlaser:
        printer is on device '/dev/tty0G' speed 9600
        queuing is enabled
        printing is enabled
        1 entry in spool area
        Fri Jun 23 13:38:17 1995: waiting for mlaser to become ready (offline ?)

May some one help me ?

***
Christophe DIARRA
Institut de Physique Nucleaire
Orsay - Bat 100 - S2I
91406 Orsay - FRANCE
E-mail: diarra@ipnsun5.in2p3.fr
***


----- End Included Message -----

Thanks to peoples who respond:
 
	Jorge Pizarro (jpizarro@sonda.cl)
	Alan Oborne   (OBORNE@CARDIFF.AC.UK)
	Tom	      (xmeyer@flying-cloud.mit.edu)
	Scott	      (swr@unx.dec.com)

Solving the problem
====================

Alan and Scoot have suggested me to test the access to the Terminal Server
(TS) using the cat command:

# cat afile >/dev/tty0G
I got the following message: "/dev/tty0G: I/O error"

I tried with an other Terminal Server and the command works fine, using
case sensitive names for the TS name and the port name as suggested by Jorge:

# latcp -A -ptty0G -H TERMINAL_SEVER -R REMOTE_PORT

Note: With OSF V3.2, latcp seems to converts all the names in upper cases.

My conclusion
==============

To print using LAT, one needs to do the following (supposed /dev/tyy0G is the
LAT device):

1) Create a LAT device and bind it to a TS:
	the LAT device must be excluded from the /etc/inittab or use it with
	:off:
        
	Exemple of good inittab entry for a reserved LAT device:
        lat0G:3:off:/usr/sbin/getty /dev/tty0G      console vt100
	
	Put the following line in the /etc/latstartup.conf file:
	latcp -A -ptty0G -H TS_NAME -R REM_PORT
	
	After each reboot, /dev/tty0G will be bound to your remote port during
	the execution of /sbin/initd./lat.
	
	If you don't use /etc/latstartup.conf to configure the port, you need 
	to type the command by hand each time the system reboots.
	Note: with OSF V2.0 you must take care to the case of the names: you
	must use upper cases for the TS name and the remote port. With OSF
	V3.2 (or less ?) this problem seems to be solved.

2) Use lprsetup to modify the /etc/printcap file
	o set ct to LAT or dev
	o set br to the remote speed of the TS port you are using
	o ts and op don't have any effect (may be I am wrong ?)
	
3) If problems occur with "lpr -Pprinter_name afile"

	use :  # cat afile > /dev/tty0G
	
	If there is no error message and the file is printed, you need to check
	your printcap.

	If you have the message "I/O error" you need to check the connection
	with your TS. 
 
***
Christophe DIARRA
Institut de Physique Nucleaire
Orsay - Bat 100 - S2I
91406 Orsay - FRANCE
E-mail: diarra@ipnsun5.in2p3.fr
***

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-07-03  9:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-07-03  9:23 SUMMARY: Printing Using LAT diarra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox