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_at_dickinson.edu P.O. Box 1773
Carlisle, PA 17013
"If God is your co-pilot, switch seats!"
Received on Wed Oct 11 1995 - 22:27:58 NZDT