[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

a2ps: Printer "display" not working



Hi list,

"a2ps -P display .bashrc" yields:

[.bashrc (plain): 2 pages on 2 sheets]
sh: line 1: /tmp/a2_HSzrDm: Permission denied
[Total: 2 pages on 2 sheets] sent to the printer `display'
[2 lines wrapped]

Using strace i found:

[pid 8415] open("/tmp/a2_N4Fh2p", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3

and a bit later:

[pid 8416] execve("/tmp/a2_N4Fh2p", ["/tmp/a2_N4Fh2p"], [/* 25 vars */]) = -1 EACCES (Permission denied)

Of course this cannot work because the exec bit is missing from the file. Is anybody else experiencing this? (Before trying, you have to fix /etc/a2ps.cfg):

Variable: ghostview gv --antialias --arguments -dNOPLATFONTS

Note the "--" (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=291749)

I was not yet able to find this in the source to fix it myself.

I use Debian sarge, a2ps 4.13b-4.3, kernel 2.6.11.11

Regards,

Heinrich Rebehn

University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -

Phone : +49/421/218-4664
Fax   :            -3341



Reply to: