* SUMMARY: Printing to an attached printer from Pine
@ 1995-10-11 20:56 Don Newcomer
0 siblings, 0 replies; only message in thread
From: Don Newcomer @ 1995-10-11 20:56 UTC (permalink / raw)
To: tru64-unix-managers
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!"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-10-11 20:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-10-11 20:56 SUMMARY: Printing to an attached printer from Pine Don Newcomer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox