yes. you are right. I did this for some barcode printrs. It had run. But I added a new printer and checked and I saw that you can see only the local and file type printers. But If you have a printer that already added. You may not use smit ,you can use this command . I hope this will change printer attributes. ;
/usr/lib/lpd/pio/etc/piochpq -p quename -d devicename -a f1='......' -a ft='.....' -a f2='.....'
f1 is the fisrt user defined filter, f2 second, f3...,f4...
ft is the troff (smilar to
sed etc.) filter
fp is pastrough filter
ff is fortran filter.
with -a you can use more than one filter , but if it runs one will be enough
I you will use your see program you may use this one -a f1='PATH/prg'
we used troff filter . our application was sending just a normal file to printer
and this filter was manuplating it. and adding someting tothe file before sending.