Date: Sun, 13 May 2001 11:21:18 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: taupin cc: djgpp AT delorie DOT com Subject: Re: Linux lpr under DJGPP? In-Reply-To: <3AFE3A35.30FE9CDE@lps.u-psud.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 13 May 2001, taupin wrote: > > You shouldn't need any lpr on DOS, just invoke Ghostscript and tell it > > to output to the printer device (doesn't it do that by default?). > > No. By default, it displays on the screen. > > Thus I change my question: > > 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. (If you are on Windows, use gswin32c instead of gs.)