On 17 May 2011 14:35:50, Ben Story wrote:

>    I am trying to setup a script to take a txt file and use enscript to
>    create PostScript and then pipe it to an HP Printer directly.
>    enscript -p- textfile.txt | lpr -Y -P 10.10.10.10%9100
>    When I do this, nothing is printed.  If I pipe it to less or to a file I
>    see the PostScript and can then tell lpr to print the PS file.  Anyone
>    have any ideas why the direct pipe is not working?

Back when I used enscript (I mostly use a2ps nowadays), I always used
enscript's -P switch to specify the printer.  But since you're using
lpr's -Y, I'm assuming you don't want to do that.  The lpr man page
does say that the -Y switch is dangerous ...

Cheers,
Jon
-- 
Jon Beck, PhD                             mailto:[email protected]
Professor of Computer Science                  2162 Violette Hall
Truman State University                              660.785.7233
Kirksville, MO  63501                   http://quartz.truman.edu/

Reply via email to