Greetings.  I've got a server setup running RedHat Linux 5.0 and
have a HP LaserJet 5L printer (local) configured using the print-tool
control panel.  I print to it from the RedHat machine, a few Macintoshes
(Netatalk, using the Laserjet IINT PPD), and a few Windows 95 
workstations (Samba, using the Apple LaserWriter Pro 600 driver;
it was the only way we could get _everything_ to print without
font corruption).  

Whenever the PCs print I get a page with simply

%%[ LastPage ]%% 

printed on it.  I came across this post while searching
Dejanews, but I'm new to Linux and have no idea where
I should put the code snippet provided.  Could someone
please help?  (I.E., where do I "make this change to the 
(less capable) stock laserjet driver script that comes with 
RedHat 5.0 and other Linux distributions?"  I'm very happy
with the print quality I'm getting now and I've learned
that when a system works, you don't change it!)

Thanks!

- Chris

 
> Ghostscript can't easily be used as a plain filter, because it has
> no easy way to separate the stdout of the interpreter from the stdout
> of the printer driver.  Thus, many "lpr" scripts will fail and cause
> this intermingling of progress messages with the desired output.
> 
> However, there is a way around this using some ugly shell pipelining
> and subshells.
> 
> Here is the basic trick:
> 
> (gs -q -sDEVICE=ljet4 -sOutputFile="|cat 1>&3" - >/dev/null) \
>        <win95.ps 3>&1 | ...whatever...
> 
> I have updated my "hp4laser" printer driver script (v3.6) to run
> Ghostscript this way. Available at:
> 
>         http://www.dgii.com/people/ftp/pub/rick/hp4laser/
> 
> You could also make this change to the (less capable)
> stock laserjet driver script that comes with RedHat 5.0
> and other Linux distributions.
>                
> -Rick


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to