I've been experimenting with the lp command on my hpux box, but can't figure how to specify that the paper should be pulled from tray 1. Also, out of curiosity, is it correct in saying that the lp command ignores options it doesn't have? for instance I tried this
lp -d printer1 -olandscape -olpi8
and the output was landscape with a smaller gap between the lines, so i tried
lp -d printer1 -olandscape -olpi10
and it was just landscape, but when i tried
lp -d printer1 -olandscape -olpi12
and the lines were so close together, they appeared to overlap. So apparently there isn't a landscape with 10 line per inch option it would seem.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Many years ago (!), when I supported Unix SVR4 systems, all of the print options were specific to each printer interface script (themselves based on model scripts).

Such scripts could be viewed/edited with simple line editors, so (if you can identify the correct script file) you could examine it to see how it processes (or not) different options.

No idea how things have changed since then, or if this is at all relevant to HPUX.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DansDadUK is correct, the printer interface script contains allowed options; Anything else is ignored. Even then, even if the interface script allows it, it doesn't mean the printer supports it - Unix interface scripts are fairly generic - So it may be that the printer itself doesn't support 10 lpi. What type of printer is it?

Use `lpstat -t`to find the "model" printer1 is using (e.g. hplaserjet), then look at the model script in /var/spool/lp/interfaces/model

You could try "-o compressed" along with "-o lpi12"

The lp option "-o trayN", where N is the tray number you want should work, if the model script supports it.

See also http://www.experts-exchange.com/OS/Unix/Q_10314477.html
JeffBeallAuthor Commented:
Thanks for the help, that got me going in the right direction. I found that the printer I'm using does have the tray option, and it works when sending jobs directly from my server. But when the job comes from the software on the server it doesn't work. So I have to contact my software company.
Don't send 'em any money just yet ;-)

The application software may not have the facility to supply command line options to the printer selection. However you can fool it in a couple of ways:
- Have the printer default config set to tray 1; Windows and command line jobs can override that setting;
- Or copy the model script, e.g. to laserjet_tray1 and edit the script copy to make the default tray1; Then create a "new" printer (e.g. "printer1_t1") that uses the new model script. Within the application software add a link to the new printer, if needed.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Printers and Scanners

From novice to tech pro — start learning today.