Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a printer connected to a terminal prints? 1

Status
Not open for further replies.

JSiva

IS-IT--Management
Mar 11, 2002
128
US
Hi all,

We are using an AIX and SCO systems at our development cneter which has Dumpterminals connected to it.

We are able to take the printout locally from the printers connected to the parallel port of the dumpterminals in both AIX and SCO.

We are using that 03]]/c script for firing the print jobs within the terminal screen.

But this is not working in our new RedHat Linux server dumpterminals.

My setup is

I have a ReHat Linux server
One dump terminal with parallel port printer attahced is connected to the Linux server through serial port (even Specialix and Terminal servers are there)
I wanted to print the files in that local printer of the terminal.
Do you have any solution please...?

JSiva jsnair@lycos.com
 
Assuming that I understand your statement:

You need to know the sequence that turns on local printing and the sequence to turn it off.

For example, if it were an ANSI terminal (vt100, vt220,
SCOANSI, etc.), the sequence to turn on local printing
is:

ESC [ 5 i

Turn it off with

ESC [ 4 i

I hope I don't have these backwards. If you need more information about this, let me know. Also, you might go to They have a much better explanation that I can give.
 
Hi,

Exactly the same I wanted as you mentioned. I am using the vt100 terminal and using the following script for AIX and SCO to print while in telnet/rlogin to the printer connected to its printer port locally:

------
prnscr

echo "\033[5i"
cat $1
echo "\033[4i"

---------

And if I say from the terminal prompt "prnscr filename" it prints on the local printer connected to the vt100 terminal. It works fine on AIX and SCO but not working on Linux. Though I tried many escape sequence options (for e.g in SCO I have to put /c at end the line in the script)it didnt work. Let me see the site you mentioned also ;-)

Any suggestion?

Thanks in Advance

JSiva
jsnair@lycos.com
 
Hi tedbdodd,

Thanks a lot for helping me in solving the problem in Linux. Atlast I got the solution from the site you mentioned above.

The following the right script for Linux terminal local printing.

printf "\033[5i"
cat $1
printf "\033[5i"

and from the command line enter "scriptname filename"

Thanks a lot

JSiva jsnair@lycos.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top