Tru64 Printing to something other than a printer


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Tru64 Printing to something other than a printer
# 1  
Old 05-10-2018
Tru64 Printing to something other than a printer

I have been searching for a solution to a printing issue for several months now and have come up with no decently working solution. Please give input.

We have an old inventory control program running on TRU64 Unix V5.1B operating system. Around 2003 it was virtualized onto VMware via AVT's vtAlpha emulator. The program appears to have been written to print it's own internal events to two files (log_file and log_file1) which are then lpr'd to printers (control and logger) set up in the operating system via printcap and then the files are deleted. The printcap file showes these printers to be lp=@ip.address:9100 which are old HP print servers (lan to parrallel) with simple text only dot matrix printers attached.
These two printers print an average of about 3 single line entries per 1 minute, 98%+ of which is not needed. There is 1 print job (about 6 lines of text) submitted and printed every hour with an inventory update, which IS needed. Therefore, I cannot just redirect the printers to /dev/null.

We cannot just turn off the printers because the spooler then stops once it gets to about 100 entries and the program hults (but not the system). I say this because we can go in and purge the print queue (via lpc) and everything starts working again.

I did figure out that if we turn the spooler off, the log_file and log_file1 do not get deleted, but are instead appended to. The problem here is that 1 weeks worth of "held" printing ended up creating 1 log_file a little over 350KB and crashed the entire unix system because it filled up the minimal available disk space. We did have a backup of the VM, but this created about 8 hours of downtime till we cleaned up and updated the program's internal database.

A few things to mention...
1: There is a network obviously, but everything else is windows based.
2. There are no programmers that are willing to try to tackle re-writting the software (internal or external).
3. Everything that is "printed" is actually submitted to some sort of file and then that file is spooled to the printer (the log_file and log_file1 are just some of the files) then the files are deleted.
4. If these files exist, they are appened to and not over-written.

I am not sure what options I have, therefore I do not have specific quesitons on how to do something.
Can we change the printcap to print to a file or something else somewhere else?
Can we set up some sort of filter that only prints the information we want and just ignores the rest?
Are we just stuck and have to keep replacing print cartridges and paper regularly?
Is there anything else you would like to know to help you help me?

Thank you in advance.
# 2  
Old 05-10-2018
google 'sysv printing with cups' and write a script to bypass any output you don't want.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Printer printing control codes

Solaris 10: Having some trouble with a new printer printing control codes. This is an HP MFP M632. Tried a few ppd files and without a ppd file using commands similar to the follow: lpadmin -p L4102A -v /dev/null -m netstandard -n... (1 Reply)
Discussion started by: kuliksco
1 Replies

2. SCO

Printing to a working network printer using PCL

I am trying to get a network printer to work that currently works from my Unix (5.0.7) server when printing text files only. When I try to print post script files like a PDF file I get all of the controls so I am not sure if I have my printer configuration setup properly in Unix The printer... (1 Reply)
Discussion started by: ziggy6
1 Replies

3. AIX

Problem with printing ps files to printer

We have a post script enabled printer setup. But when we send any .ps file using ps to this printer we are getting this error: Cannot print postscript file because No postscript print queue exists for this printer. Print queue name Xerox Printer name... (0 Replies)
Discussion started by: mansmaan
0 Replies

4. AIX

Printing to Local Printer.

This is an easy one but have no clue how to start. I am connecting via a PC running XP using putty. I have a printer attached to my PC. I need to print stuff. How can I set up this printer? Thanks !:eek: ---------- Post updated at 18:22 ---------- Previous update was at 16:38 ---------- The... (2 Replies)
Discussion started by: 300zxmuro
2 Replies

5. UNIX for Dummies Questions & Answers

Printing Landscape to PCL 6 Printer

I've looked around and am able to print landscape to a PCL 5 printer with this command: lp -o landscape -o cpi=20 -o page-right=30 -o page-left=30 -d <printer> <file>. Which gives me a nice 200 columns. But, when I send the same output and the same commands to a PCL 6 printer, it comes... (3 Replies)
Discussion started by: tariqjamal
3 Replies

6. HP-UX

Printer Only Printing First Line

Hi all, I've got this issue which has me stumped. Any help would be greatly appreciated. Printers which i have added through SAM, as remote printers with their IP address, only print the first line. Any text file is sent through to the printer only prints the very first line of the file, and the... (18 Replies)
Discussion started by: nubix
18 Replies

7. HP-UX

Printing Problem With Hp4250n Printer?

Hi all;:) I have the following strange problem with my network printer Hp Laser jet 4250n working with Hp9000 rp3410 Servers , it prints well under Microsoft windows operation system ,,, But under Hp Unix 11.1 applications such as text editor the printing font is very small (size 4) ; one... (2 Replies)
Discussion started by: Michel Boss
2 Replies

8. UNIX for Dummies Questions & Answers

Printing 5 raw characters to a printer

Hi there, I want to open a cash drawer remotely. The cash drawer is commanded by a printer. I need to connect to the cash drawer which is connected over a network (and shared) and simply send a sequence of five ASCII commands (see http://pages.prodigy.net/daleharris/popopen2.htm) to a... (5 Replies)
Discussion started by: Friğrik
5 Replies

9. UNIX for Dummies Questions & Answers

lpd printing and a IP based printer on SCO

I am attempting to setup an IP based printer in a SCO environment. It is a cognitive printer. I attempted to add it via the HP interface but I could not get anything sent from the spooler to the printer in SCO? My questions is or are should this be setup as a local or remote printer? When I... (6 Replies)
Discussion started by: spglass
6 Replies

10. SCO

Printing from SCO 5.05... to XP Shared Printer

I am having trouble getting our accounting program (on SCO 5.05) to print to a shared windows printer. We used to use a program that took care of this PCI print server or somehting like that. but when XP service pack 2 got installed somethign happened with the permissions and the files would... (2 Replies)
Discussion started by: LarryG
2 Replies
Login or Register to Ask a Question