From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075324106561.tru64-unix-managers.marc@archive.invalid> From: Don Newcomer Date: Wed, 11 Oct 1995 20:56:41 +0000 To: tru64-unix-managers Subject: SUMMARY: Printing to an attached printer from Pine X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075324106561 I had posted quite some time ago about problems printing to an attached printer from Pine using the "attached-to-ansi" option. I've worked with the Pine folks for quite some time and they are still looking at the problem. Until they've corrected it, I have a workaround that has been very successful for us. I had to port a little HP print filter (called 'hpf') I wrote for my DECstation that puts carriage returns on the end of each line. I discovered that piping the message through the filter and then into Pine's 'ansiprt' program worked well. I did make a minor modification so that it does a formfeed before closing the printer down. To put it into production I built a script in /usr/local/bin called 'print-locally' which looks like this: # # This script prints whatever is received on standard input to # the attached printer. # /usr/local/bin/hpf | /usr/local/bin/ansiprt I then used 'sed' to replace the printer selection for everyone using 'attached-to-ansi' with 'print-locally'. Not the best solution but, hey, it works! Thanks to everyone for their suggestions. ================================================================================ Don Newcomer Dickinson College newcomer@dickinson.edu P.O. Box 1773 Carlisle, PA 17013 "If God is your co-pilot, switch seats!"