lp behaves differently if you cat a file to it

Michael Sweet mike at easysw.com
Fri Oct 8 07:07:42 PDT 2004


james_hurford at yahoo.co.uk wrote:
> One of my users has notcied the following behaviour
> 
> The CUPS lp command behaves differently for these two commands:
> 
> lp -d myprinter filename
 > cat filename | lp -d myprinter
> 
> In the top command the file prints just fine on A4 paper to the
> printer (HP laser 4100).
> 
> When the second command is used the printer tries to print from a
> different tray and asks for letter size paper to be used.

The two should be equivalent as long as you are in fact printing the
same file and are using the same path (i.e. the same "lp" command)

It would be interesting to see a snippet of your error_log file
("LogLevel debug" please) when printing each way...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com




More information about the cups mailing list