LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-02-2004, 07:55 AM   #1
grantb
LQ Newbie
 
Registered: Aug 2004
Location: Port Elizabeth, South Africa
Posts: 1

Rep: Reputation: 0
Printing from a terminal to its printer??


Hi

I am a complete Linux novice, having been a Windows end-user all my working life. Unfortunately, the company I just joined is small, and there isn't anybody within the company who has the background or expertise to deal with this problem, so it's fallen in my lap.

My company has just moved its financial software from an old version of SCO Unix to Linux Mandrake. The main reason was Linux's TCP/IP support (the cost of upgrading SCO Unix to have TCP/IP support was very high.)

The company (a stationery supplier) has a cash sale desk with a terminal that has a printer connected directly to it, and which prints out invoices for cash customers.

However, since moving to Linux, this printer no longer works. There is no IP address for the printer. It seems to be the standard output device for the terminal to which it is attached.

In the financial package (a program called Titan), there is a printer configuration file which refers to this printer as follows:

PRINTER9 -P /usr/bin/prn9

So far, so good. However, I found two versions of the file, prn9. This is the one called /usr/bin/prn9 which the above line refers to:

echo '\033[5i\c'
cat $1
echo '\033[4i\c'

I also found a similar file in a backup directory which reads as follows:

sleep 2
stty ixon opost onlcr ixoff 0<&1
echo '\033[5i\c' >&1
cat $1 >&1
echo '\033[4i\c' >&1
exit 0

Neither of these seem to work anymore.

The Linux expert who handled the conversion from Unix to Linux for us has also tried a program called VTPRINT, but so far without success. He is still researching this program, and seems to be having some difficulty finding out how to use VTPRINT in this sort of situation.

Can anybody shed some light on the above, or offer advice on how to make a terminal send an invoice to its attached printer?

Unfortunately, I don't know what sort of additional info I should have included with this posting, so anybody please tell me what to look for and how to do it, and I'll be grateful.

With thanks,
Grant Botes
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PS printing to non-ps printer Artik Linux - Hardware 2 07-04-2005 02:44 PM
very basic PRINTING TERMINAL help tuomo Linux - Newbie 11 03-18-2005 10:21 AM
printing to xp printer... moschi Linux - Newbie 3 03-30-2004 02:33 AM
keeping printer on at bootup keeps printer from printing (some printer modules loaded TheOneAndOnlySM Slackware 1 10-17-2003 07:39 PM
Printing from terminal bxb32001 Linux - Newbie 2 08-01-2002 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration