How do I lp print to different tray?

I have an HP k510 all-in-one PhotoSmart wireless printer that has wifi 802.11n. I want to print on different trays using Unix Version 5. Can someone show me how to lp print to different tray? Thanks in advance.

I have an HP k510 all-in-one PhotoSmart wireless printer that has wifi 802.11n. I want to print on different trays using Unix Version 5. Can someone show me how to lp print to different tray? Thanks in advance.
Hello,
Following command will assist to print from different trays, please go through them to understand properly:
$ lpr -P TEST9050 -o media=A4 testfile.ps
# prints from tray4
$ lpr -P TEST9050 -o media=Letter testfile.ps
# prints from tray3
$ lpr -P TEST9050 -o media=COLOR testfile.ps
# prints from tray3
$ lpr -P TEST9050 -o media=A4 testfile.ps
# prints from tray2 if tray4 is pulled out simulating empty
HTH!
Notifications