3 # Workaround Win95 printer driver/Impressario bug by removing
4 # the PS check for available virtual memory. Note that this
5 # bug appears to be in all Win95 print drivers that generate
6 # PostScript; but is for certain there with a QMS-PS 810 (the
7 # printer type I configure on the Win95-side for printing with
10 # the sed script fixes 3 different bugs. The first line removes
11 # the JCL statements added by some HP printer drivers to the
12 # beginning of the postscript output. The second line fixes a
13 # bug in output from word files with long filenames. A non-printing
14 # character added to the end of the title comment by word is
15 # removed. The third and fourth lines are the VM fix described
20 sed -f /usr/samba/bin/psfixes.sed $2 | /usr/bin/lp -c -d$1 -t"$TITLE"