delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/13/16:04:05

Message-ID: <3AFEE4FB.1B1DF4EA@lps.u-psud.fr>
Date: Sun, 13 May 2001 21:48:11 +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 AT delorie DOT com
Subject: Re: Linux lpr under DJGPP?
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010513111651 DOT 13251I AT is> <3AFEA012 DOT EF9614DC AT lps DOT u-psud DOT fr> <2110-Sun13May2001183045+0300-eliz AT is DOT elta DOT co DOT il>
Reply-To: djgpp AT delorie DOT com

Things are not so trivial as you said:

Eli Zaretskii wrote:
> 
> > Date: Sun, 13 May 2001 16:54:10 +0200
> > From: taupin <taupin AT lps DOT u-psud DOT fr>
> > >
> > >   gs -q -dNOPAUSE -sDEVICE=ljet4 -rNNNxMMM -sOutputFile=LPT2

> > Works but with 3 drawbacks:
> >  1. does not close the window at end (I mut type "quit")
> 
> Add -dBATCH to the switches.  (I refuse to be an efficient replacement
> for reading the docs ;-)

Done.
> 
> >  2. does not accept wild chars (to proceed several files) as does "lpr"

Can be solved with "ls [the arguments] > @somefile
and giving @somefile as an argument.

> >  3. does not accept gzipped files as does "lpr".
> 

The problem is that GS crashes if an argument is NOT postscript...
> This can be handled with `find' and `xargs'.

BTW: the doc is not clear about the difference between gswin32 and
gswin32c: in fact gswin32c does not give back control immediately, but
only when it terminated its task. Useful when gunzipping files as
temporary *.ps files which should be erased ONLY when gswin32 finished
its job.

All this to say that, after some work, the PS printing of a series of
gzipped PostScript files is possible.
But the main thing I say now: this is sufficiently difficult to be worth
a posted implementation.

Thanks anyway for your help, Eli.

-- 

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