Solved

passthrough printing

Posted on 2002-07-23
7
396 Views
Last Modified: 2012-06-22
I need to setup a printer attached to a wyse60 terminal on parallel port.
os is sco open server 5.0.5
I have read documentation about this, all seems very confusing.
I have to be able to use lp to print because our software uses lpd, so either /dev/tty?? or |lp -dmyprinter.
for example i cannot use lprint at least I think I can't
I have tried the following in a script, and can print from the terminal only.
#tput mc5
 cat $ *
 tput mc4

Cheers
0
Comment
Question by:bluez
7 Comments
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 7172784
Well, you could write a print driver that connects to that particular terminal though /dev/tty<something> and issues whatever escape sequences 'tput mc5' and 'tput mc4' issue.

But as you can see lp isn't really aimed at such things (and what if the terminal is turned off, etc.?).

A better idea is to get a small printer server box that talks lpr protocol (about $100) and put the printer on the network.
0
 

Author Comment

by:bluez
ID: 7172814
mmm..
Not practical, this is a normal way to print in a multiuser network, the terminal dials into the unix box via analogue on tty2a (unix box)
so you would type atdt12345678
conect
^
logon
The software is run which will use >/dev/tty??
or |lp -dprinter.
I have done this before but cannot remember the procedure.
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 7173291
Why can't you use lprint?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:bluez
ID: 7173995
The software in question is Multisoft. It uses the unix lpd or direct connection
1. |lp -dmyprinter
2. >/dev/tty1a for example
There are no other choices the field is something like

Choose printer port: |lp -dmyprinter
I have tried         |passprt
This does not work because Multisoft cannot pipe to the script I need to use the unix or multisoft spooler.
I am sure the printer was previously set to use /dev/tty1a
but how can this be.
If my terminal
cat $TERM is for eg /dev/tty2a should by printer port on the dumb terminal be /dev/tty2ap this port exists in scoadmin.  I have tried this port but it does not work.
cheers.
0
 

Author Comment

by:bluez
ID: 7178506
Hi
I have answered this problem myself, Thanks for your input
for future reference see this article.
http://stage.caldera.com/ns-search/TAEXT/os/107193.shtml?NS-search-set=/3d405/aaaa001Fc4052d4&NS-doc-offset=23&

Bluez
0
 
LVL 20

Expert Comment

by:tfewster
ID: 7921670
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:

- PAQ & refund points

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster
Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7967247
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AIX print queues constantly going down 11 550
SSH commands for Nas4free 21 464
awk sed variable in file 3 76
Field name with special character (Ñ) in Oracle 11 94
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question