The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 08-29-2007
fazliturk fazliturk is offline
Registered User
 

Join Date: Aug 2007
Posts: 45
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.

Last edited by fazliturk; 08-29-2007 at 01:26 AM..
Reply With Quote