Hi,
I am trying to set up a (virtual - if this is the correct word)
printer that gets Postscript-files as input an reformats them
so that there are two pages on one A4-sheet.
I'm using SuSE Linux 6.3 and a Hewlett Packard Laserjet 4 Postscript
Printer that has its own network interface.
I wanted to use pstops for the reformatting-job (the pagespec I
manpage]). pstops can read from stdin and writes the output to
stdout so that it should work fine as a printfilter. When I try
it works as it should.
I added an entry in the /etc/printcap :
hp1_2p|remote printer on hp1:\
:sd=/var/spool/lpd/hp1_2p:\
:rm=hp1:\
:rp=lp:\
:lf=/tmp/lperr:\
:bk:sh:mx#0:
but nothing happens (no output to /tmp/lperr either). So I tried to
use a very simple Perl-script as the inputfilter instead:
#!/usr/bin/perl
open(OUTFILE, ">/tmp/lprout");
while(<STDIN>) {
print OUTFILE $_;
print $_;
close(OUTFILE);Quote:}
with ...
:if=/usr/bin/echops:\
...
in the printcap.
This works just fine (and it also only reads from stdin and puts
stuff out on stdout, I added the OUTFILE-output for control-purposes
only). I cannot figure out why things don't go well when I use pstops.
Any ideas ? Thanks in advance !
Ingo