www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/13/11:09:48

Message-ID: <3AFEA012.EF9614DC@lps.u-psud.fr>
Date: Sun, 13 May 2001 16:54:10 +0200
From: taupin <taupin AT lps DOT u-psud DOT fr>
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: DJGPP List <djgpp AT delorie DOT com>
Subject: Re: Linux lpr under DJGPP?
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010513111651 DOT 13251I AT is>
Reply-To: djgpp AT delorie DOT com


Eli Zaretskii wrote:
> 
> On Sun, 13 May 2001, taupin wrote:

> >  Has somebody a procedure to call GhostScript and tell it to print the
> > output on a printer (specifying of course the printer resolution, the
> > printer type (ljet4, laserjet...), the printer channel (lpt1: lpt2:
> > etc.)?
> 
>   gs -q -dNOPAUSE -sDEVICE=ljet4 -rNNNxMMM -sOutputFile=LPT2
> 
> You will have to figure out the NNNxMMM arguments (the resolution)
> yourself, using the Ghostscript docs and your printer's manual.  It's
> probably 600xSOMETHING.

Works but with 3 drawbacks:
 1. does not close the window at end (I mut type "quit")
 2. does not accept wild chars (to proceed several files) as does "lpr"
 3. does not accept gzipped files as does "lpr".

This means that I should write a small program in C/DJGPP or F77/DJGPP
to handle a number of files and gunzip them it suffix .gz is present.
But perhaps somebody did it already...

> 
> (If you are on Windows, use gswin32c instead of gs.)

-- 

------------------------------------------------------------------------
  Daniel Taupin, 91400 ORSAY - France
  E-mail= mailto:taupin AT lps DOT u-psud DOT fr
  Home/fax: (33)1.60.10.26.44. Work: (33)1.69.15.60.79, fax
(33)1.69.15.60.86

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019