On Mon, Jan 17, 2005 at 5:03:59PM +0100, Johannes Meixner wrote:
On Jan 8 00:48 Jim wrote (shortened):
Putting this in a file fails:
#!/bin/bash a2ps -o -
that is, a2ps sends its output to the printer...
I cannot reproduce it. For me (using SUSE LINUX 9.2) it works as you expect it to work. Perhaps there is a strange environment setting for the user who runs the script?
I suspect something like that was the problem. I eventually found the expanded docs at: http://www.inf.enst.fr/~demaille/a2ps/ where it mentions: " Only a single destination is possible at a time, i.e., if ever there are several options `-o', `-P' or `-d', the last one is honored. " so probably there was a -P or a -d somewhere else in the processing chain. Once I'd read the full docs, I was able to set all my options in one go in /etc/a2ps-site.cfg and get busy printing. I'd recommend anyone using a2ps to read the docs at the link above. Cheers, Jim