To print file File5 on the default printer and to specify the two attributes files default.att and special.att, enter:
lp -o "attributes=default attributes=special" File5
Suppose that the file default file contains these lines:
input-tray=bottom duplex=yes output-bin=collator
The file special file contains these lines:
input-tray=top copies=5 title-text='Special Report'
The preceding command is equivalent to this command:
lp -o "input-tray=top duplex=yes output-bin=collator copies=5 title-text='Special Report'" File5
The value of input-tray in special.att overrides the value in default.att because you specified special.att last.
Note: These examples assume that the attributes files are in the current directory or that you have set the AOPPATH environment variable to include the directories where the attributes files reside. If this is not the case, you would specify the attributes files by their absolute path names.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|