Mail Archives: djgpp/2001/05/12/05:00:16.1
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> > Date: Fri, 11 May 2001 22:23:21 +0200
> > From: taupin <taupin AT lps DOT u-psud DOT fr>
> >
> > Question: althog I can prepare my *.ps.gz under DOS and reboot to Linux
> > to print them, I would appreciate doing that direcly under DOS, thus
> > avoiding a reboot.
> >
> > -> is there a port of lpr/lp for DJGPP, using either a port of
> > GhostScript, or calling the Aladdin release I have under windows?
>
> 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?).
>
> lpr exists on Unix because the print spool queue there is visible to
> the user: you have commands to add, remove, and otherwise manage that
> queue with commands like lprm, lpq, etc. When you use lpr to print a
> PostScript document, it is simply sent to a queue which knows how to
> process PostScript, either by sending them to a PostScript printer or
> by piping them through Ghostscript. DOS doesn't need that.
BTW: After processing the file using Ghostscript, you may use the DOS PRINT
command which works like lpr. But since nobody uses PRINT, forget it. Just
feed GhostScript with your PS file, and it will work.
--
#!/usr/bin/perl -- prints all files of current dir.
open H,"|a2ps -1R";for(sort<*>){print H"$_:\n";open
X,"<$_";print H map{chomp;"> $_\n"}<X>;print H"\n"}
- Raw text -