The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File filter Dastard Shell Programming and Scripting 3 09-06-2007 10:50 AM
Filter using awk arun_st UNIX for Dummies Questions & Answers 3 03-21-2007 04:20 AM
How do you send printer codes to an IP printer jeffbugfree IP Networking 2 10-20-2005 03:15 PM
sexist filter Quintab UNIX for Dummies Questions & Answers 5 01-02-2005 03:52 PM
know I do for to printer in printer deskjet 80colun edvaldo Linux 1 07-13-2004 01:20 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-13-2007
Registered User
 

Join Date: Aug 2007
Posts: 2
AIX printer filter

I am trying to setup remote printer queues on a AIX 5.2 system that sends all print requests through a filter by default.

The application that is running on the LPar is coded to call the lp command to produce a print.

Ideally I would like a single queue per remote printer to pass the data through a filter (C Program) by the application just calling the lp command.

I have found ways of doing this via 2 print queue's and using _f and the qprt command in a backend, but I need to include this all into 1 remote printer queue and the lp command.

Any idea's?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-23-2007
Registered User
 

Join Date: Aug 2007
Posts: 45
Quote:
Originally Posted by blacksm View Post
I am trying to setup remote printer queues on a AIX 5.2 system that sends all print requests through a filter by default.

The application that is running on the LPar is coded to call the lp command to produce a print.

Ideally I would like a single queue per remote printer to pass the data through a filter (C Program) by the application just calling the lp command.

I have found ways of doing this via 2 print queue's and using _f and the qprt command in a backend, but I need to include this all into 1 remote printer queue and the lp command.

Any idea's?
did you try print spoolng->programing tools->preprocessing filters in smit
Reply With Quote
  #3 (permalink)  
Old 08-29-2007
Registered User
 

Join Date: Aug 2007
Posts: 2
I have, but that smit option gives me no printer queue to select.

Cheers

Steve
Reply With Quote
  #4 (permalink)  
Old 08-29-2007
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
  #5 (permalink)  
Old 08-29-2007
Registered User
 

Join Date: Aug 2007
Posts: 45
if you want to use smit ;
select programing tools->select printer attr.database (the first line)
find printer there>enter
enter ~v
a colon formatted file will be shown which belons to that printer.you can do every thing there.
find f1 with /f1
just add /PATH/prg at the END of the line.
save >wq
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0