Problem Overview: We have a scheduler that prints report on any of the network printer.
Problem Statement: We need to find a UNIX command that picks up either A4, legal or letter size paper form the printer.
I found out a command but it's
not working on our environment.
lpr -h -P <printer name> -# <no of pages to be printed> -o media=Letter test.txt
it gives the following error.
lpr: illegal option -- o
the command
lpr -h -P <printer name> -# <no of pages to be printed> test.txt
Prints the test.txt on an A4 paper.
Please reply help me