Message-ID: <3AFEA012.EF9614DC@lps.u-psud.fr> Date: Sun, 13 May 2001 16:54:10 +0200 From: taupin X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Eli Zaretskii CC: DJGPP List Subject: Re: Linux lpr under DJGPP? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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