www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/12/05:00:16.1

From: eins AT durchnull DOT de (Rudolf Polzer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Linux lpr under DJGPP?
References: <3AFC4A39 DOT 620BDC3E AT lps DOT u-psud DOT fr> <3405-Sat12May2001082614+0300-eliz AT is DOT elta DOT co DOT il>
X-newsgroup: comp.os.msdos.djgpp
X-realname: Eli Zaretskii
X-Ringtones: http://ringtones AT durchnull DOT de
X-Original: no
Message-ID: <slrn9fq2ir.227.eins@www42.t-offline.de>
User-Agent: slrn/0.9.6.3 (Linux)
Date: Sat, 12 May 2001 12:03:07 +0200
Lines: 29
NNTP-Posting-Host: 213.7.23.27
X-Trace: 989654689 news.freenet.de 30289 213.7.23.27
X-Complaints-To: abuse AT freenet DOT de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


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