D e b u g g i n g - - - - - - - - - Activate the debug switch at the beginning of the script (set -x). Then you can find debugging output in the printers logfile. /usr/spool/PrInTeRnAmE/log Don't forget to comment out the debug switch later otherwise your logfile will grow very quickly ;-) Good debugging methods: Switch to virtual console 1 ALT-F1: tail -f /usr/spool/PrInTeRnAmE/log Switch to virtual console 2 ALT-F2 and print something: lpr /usr/lib/apsfilter/test/*66* Switch to virtual console 1 ALT-F1 and watch logfile growing ;-) Works very fine in different Windows, if you have X11.