AIX printer filter


 
Thread Tools Search this Thread
Operating Systems AIX AIX printer filter
# 1  
Old 08-13-2007
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?
# 2  
Old 08-23-2007
Quote:
Originally Posted by blacksm
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
# 3  
Old 08-29-2007
I have, but that smit option gives me no printer queue to select.

Cheers

Steve
# 4  
Old 08-29-2007
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 05:26 AM..
# 5  
Old 08-29-2007
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

How to build a printer in AIX?

Hi , does anyone have any document related to printer build on AIX ? thanks (1 Reply)
Discussion started by: nkchand
1 Replies

2. AIX

Setting up printer in AIX 6.1

Hi All, I have been trying to configure an HP laserjet printer on an AIX6.1 server through network as well as remote. This is the first time i am configuring a printer on AIX. I had been using smitty butwhile configuring, i am getting blank/stuck at "software to support the printer attachment... (10 Replies)
Discussion started by: Rockyc3400
10 Replies

3. AIX

AIX v5.2 Printer Question

Hi All, I have an AIX server runing v5.2.0.0 OS and i am trying to print to a printer attached to the parallel port. I have successfully configured a printer and a print queue. However, when i submit the job i get the following error Message from queueing system: 0781-088 Queue z:lp0 went... (4 Replies)
Discussion started by: rramanuj
4 Replies

4. Shell Programming and Scripting

Printer filter - convert to ps then to pdf

Hi, I currently have a driver located in /etc/cups/interfaces that does the following: job="$1" user="$2" title="$3" numcopies="$4" options="$5" filename="$6" # Set up printer default modes echo -e "\033E\c" echo -e "\033)0B\c" cat "$filename" So then I want to do something... (2 Replies)
Discussion started by: stuaz
2 Replies

5. AIX

AIX filter Issues

Hi, I want to print from AIX 5.3/6.1 using 'pr' preprocessing filter and 'PCL' print file type. Steps: 1. Smitty 2. Print Spooling 3. Create a print queue(remote->Generic) 4. change the attributes for that print queue. 5. Change print file type to PCL and... (1 Reply)
Discussion started by: meeraramanathan
1 Replies

6. UNIX for Dummies Questions & Answers

printcap printer -> email account script/filter help

the basics: Tru64 unix 5.1b on alpha have nail(now mailx), mail, and mailx(old version) available. I'm trying to make a print filter to take a file that is printed to a specific printer in my printcap file and email it. I put this in my printcap: emailprinter:\ ... (0 Replies)
Discussion started by: syadnom
0 Replies

7. UNIX Desktop Questions & Answers

printer/filter setup

trying to get my laserjet to print under FC5. Got APSFILTER; what to answer to question 'parallel or serial printer port when it is USB? Do I need an updated filter software? I tried 'parallel', get 'permission denied when I try lp or lpr command- thanks- Marshall (2 Replies)
Discussion started by: blann
2 Replies

8. AIX

AIX Printer problem

Hi, Has anyone encountered the error below. I have tried to startup the printer but the error keep showing up. Please help. Thanks. Queue Dev Status Job Files User PP % Blks Cp Rnk ------- ----- --------- --- ------------------ ---------- ---- -- ----- --- ---... (1 Reply)
Discussion started by: sodapop
1 Replies

9. UNIX for Dummies Questions & Answers

Want to add a new printer to AIX

Hello. I would like to add an HP printer to my AIX (5.2) system. The printer is attached to a Windows PC via LPT1. We are using Novell as our LAN :) I am somewhat familiar with SMIT and printer queues. Still a bit of a newbie. I would like to be able to print from the AIX directly to... (0 Replies)
Discussion started by: MILLERJ62
0 Replies

10. UNIX for Advanced & Expert Users

AIX v5.2 Printer Question

Hi All, I have an AIX server runing v5.2.0.0 OS and i am trying to print to a printer attached to the parallel port. I have successfully configured a printer and a print queue. However, when i submit the job i get the following error Message from queueing system: 0781-088 Queue z:lp0 went... (1 Reply)
Discussion started by: rramanuj
1 Replies
Login or Register to Ask a Question