tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Don Newcomer <newcomer () dickinson ! edu>
To: tru64-unix-managers
Subject: SUMMARY: Printing to an attached printer from Pine
Date: Wed, 11 Oct 1995 20:56:41 +0000	[thread overview]
Message-ID: <96075324106561.tru64-unix-managers.marc@archive.invalid> (raw)

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!"

                 reply	other threads:[~1995-10-11 20:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox