Displaying 1 result from an estimated 1 matches for "printuid".
Did you mean:
printui
1999 May 05
0
Printing from Linux -> NT with banners
...o /dev/null, then sends the print job
through foo (bye-bye banner).
So, my solution was to hack the filter to prepend a banner to any output it
produces. Since my printer is postscript, that's what I produced:
BANNER=/tmp/lprbanner$$
while getopts cw:l:i:n:h: flag; do
case $flag in
(n) printuid=$OPTARG ;;
(h) printhost=$OPTARG ;;
esac
done
cat template.ps | sed -e "s/_USERNAME_/$printuid/
s/_HOSTNAME_/$printhost/" > $BANNER
then later in the script:
(cat $BANNER; <other commands to produce PS output from print job>) |
smbprint
Templat...