Lp/lpr equiv or how do I print

Jason Tishler Jason.Tishler@dothill.com
Tue Nov 28 09:35:00 GMT 2000

On Fri, Oct 06, 2000 at 08:01:01AM -0400, Jason Tishler wrote:
> IIRC, a2ps builds OOTB -- so do the configure, make, make install thing.
> GhostScript is already pre-built for Win32 -- so do the point and grunt
> thing.

I forgot to recall that one should build and install file before
configuring a2ps since a2ps uses file to determine file types.
file builds OOTB and can be found at:


> See the first attachment for my PCL version of lpr -- just put it
> somewhere in your PATH.  You will need to modify GS and Printer to
> match your environment.  The last component of Printer should match your
> printer name as it is listed in Control Panel/Printers including spaces.

I just found gsprint which makes my PCL version of lpr much simpler.
See attached for the new version.  Note that you will have to modify
GSPRINT to match your environment.  Also note that my lpr prints to
the default printer only.  If you want to print to a different printer,
then you will have to specify the "-printer" option.

Strangely enough gsprint is not part of Ghostscript, but is part of
GSview.  So, one needs to install GSview too.  GSview can be found at:


BTW, using gsprint happens to prevent our print server (which also happens
to be our PDC, file server, VPN server, etc.) from BSODing occasionally
when the printing process is driven by a *remotely* running gswin32c. :,)

> Setting -sOutputFile properly is supposed to stop GhostScript from
> prompting the user for the desired printer.  Unfortunately no matter
> what I specify for the -sOutputFile option, gswin32c prompts for the
> printer even though I only have one defined printer.  Sigh...

Just for completeness, I finally determined that the above only occurs
when the printer is a network (i.e., not a direct) attached printer.  It
seems like gswin32c does not like network printers, hence the occasional


Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

More information about the Cygwin mailing list