1753779 Members
7649 Online
108799 Solutions
New Discussion юеВ

banner

 
Fadia Almarei
Super Advisor

banner

Dear All
I have HP-UX 11i system , and i have defined a network printers on it , i want to know at which file the banner of each printer found .
BR,
Fadia
fadia.marei
10 REPLIES 10
Peter Godron
Honored Contributor

Re: banner

Fadia,
/etc/lp ?
Regards
Peter Godron
Honored Contributor

Re: banner

Fadia,
sorry this should have been:
/etc/lp/interface/
Regards
Fadia Almarei
Super Advisor

Re: banner

this is what in /etc/lp
# cd /etc/lp
# ll
total 0
drwxr-xr-x 2 lp bin 96 Nov 15 2000 cinterface
drwxr-xr-x 2 lp bin 96 Nov 15 2000 class
drwxr-xr-x 2 lp bin 96 Nov 15 2000 info
drwxr-xr-x 2 lp bin 96 Nov 15 2000 interface
drwxr-xr-x 2 lp bin 96 Nov 15 2000 member
drwxr-xr-x 2 lp bin 96 Nov 15 2000 sinterface


so where is the banner files
fadia.marei
Fadia Almarei
Super Advisor

Re: banner

interface is an empty directory
fadia.marei
Peter Godron
Honored Contributor

Re: banner

Fadia,
can you please do a find:
cd /etc/lp
find . -name

That should return something.
Fadia Almarei
Super Advisor

Re: banner

the only directory that contain the printers names is

/var/opt/pd/spooler1/pdb/log_printer
fadia.marei
Dave La Mar
Honored Contributor

Re: banner

I was baffled that a self proclaimed expert (Star by name) would not know this.
But just for fun I did a search for lp banner.
Try it, you will get a host of hits, many of which will anser your question.

Best of luck.

Regards,

dl
"I'm not dumb. I just have a command of thoroughly useless information."
Fadia Almarei
Super Advisor

Re: banner

Dear All

there is a file for each printers type which contain a script of the banner, and it is the same for all my printers as a define them as the same type, and this found in the directory /usr/spool/lp/model, so i want a special banner for each printer,how could i do this.

BR,
Fadia
fadia.marei
Keith Bryson
Honored Contributor

Re: banner

Fadia

If I understand correctly, you want specific, totally different banners for each printer? Maybe you could copy one (generic) model script (in /usr/spool/lp/model) to another individual model script (with a unique name) and make your banner changes. Then when you create the printer, point it to the individual model script in /usr/spool/lp/model. You would therefore have one model script per printer.

All the best - Keith
Arse-cover at all costs