Subject: Re: printcap, banners, and PostScript...
To: der Mouse <jaywon!Collatz.McRCIM.McGill.EDU!>
From: David Gilbert <pci!jaywon!>
List: current-users
Date: 01/20/1996 22:55:42
>>>>> "der" == der Mouse <mouse@Collatz.McRCIM.McGill.EDU> writes:

der> As I mentioned and all these respondents who have been pointing
der> at %!  seem to have ignored, I have on occasion wanted to print
der> _exactly the same file_ twice, once as as PostScript program to
der> be run and once as a text file to be printed.  _No_ guessing
der> mechanism that looks at only the contents of the file can
der> possibly suffice.

	The way I handled it under HpUx was to create several network
printer with a filter on it.  My task was to make the same printer
handle raw HpPCL, PostScript, and Text.  So... I created several
'printers'.  For hpPCL and PostScript, the job was easy --- just tack
on the 'force <mode>' command to the head of the file, and send it.

	For the text, I ran it through a text-to-PS filter just to be

	The secret is to have the remote printer point at localhost as
the machine to send it to.  If I remember correctly, you can also pass
a single parameter to berkeley printer devices.


|David Gilbert, PCI, Richmond Hill, Ontario.  | Two things can only be     |
|Mail:                |  equal if and only if they |
|               |   are precisely opposite.  |