This is my question: The banner printing is active in our TEST and PRODUCTION instances and we need to suppress it only for some reports. That's why I'm using the following instruction that works fine in TEST but not in PRODUCTION:
$ lp -orelay -d$printer $file_name
I'm not an expert in Unix, so I don't even know what the instruction "l -orelay" does. Can somebody help me? What this instruction does? Where should I start looking to find the solution?
Not Solaris since it does not have the -orelay option. The -o is an option. You can check the man page for lp to possibly find out what the relay option does.
$ man lp
I also checked HP-UX but it showed that options were printer specific in /etc/lp/interfaces (and none were set up on my server).
Check your TEST versus Production system once you know what the options are or where to find them. There is a difference between them (printer interface files) which is causing the banner to print on one and not the other.