There are multiple ways to print from the command line:
You can print using the print queue defaults.
If you are printing from Sun Solaris, HP-UX, IBM AIX, or Linux with CUPS, enter the following on the command line:
# lp -d queue_name file_name
If you are printing from Linux with the LPRng print subsystem, enter the following on the command line:
# lpr -P -queue_name file_name
You can print with overrides to the print queue properties you select from the properties screen.
Enter the following on the command line:
# ibmlp -d queue_name file_name
Change the appropriate settings.
Click OK.
You can print with overrides to the properties you enter from the command line.
Access a list of the current properties by entering the following command:
# /usr/ibmprint/bin/lsqueue_opts -q queue_name
Find the name of the property you want to change and the value to which it can be changed.
Enter the command to change the properties.
If you are printing from Sun Solaris, HP-UX, IBM AIX, or Linux with CUPS, use the following command to change properties:
# lp -d queue_name -o property_name=property_value file_name
If you are printing from Linux with the LPRng print subsystem, use the following command to change properties:
# lpr -P queue_name -C "lexopts:property_name=property_value" file_name
Example: You have a print queue (“lab_printer”) that is currently set to print only single-sided pages, and you need to print a two-sided report. You can specify the change on the command line.
Determine if the print queue supports the feature you want to use (in this case, duplex printing), and enter the appropriate command.
# /usr/ibmprint/bin/lsqueue_opts -q lab_printer
The screen then reads:
none (default) | |
short_edge | |
long_edge | |
printer setting |
Find the property name and value that controls duplexing. For this example, use
.If you are printing from Sun Solaris, HP-UX, IBM AIX, or Linux with CUPS, enter the following on the command line:
# lp -d lab_printer -o duplex=long_edge my_report.ps
If you are printing from Linux using the LPRng print subsystem, enter the following on the command line:
# lpr -P lab_printer -C "lexopts:duplex=long_edge" my_report.ps