Operating System - HP-UX
1833861 Members
2411 Online
110063 Solutions
New Discussion

print from Unix on a specified tray

 
Patrice Blanchard_2
Frequent Advisor

print from Unix on a specified tray

Hi,

is it possible to print on a specified printer tray from unix?

my problem is that i'm printing on a canon but it's always asking for tray 3 (legal landscape). I want to know if there is a way from the lp command or the pilote or else to specify print on tray 1.

regards

Patrice
5 REPLIES 5
Peter Godron
Honored Contributor

Re: print from Unix on a specified tray

Pete Randall
Outstanding Contributor

Re: print from Unix on a specified tray

First, how is the printer defined? If it is set up as network attached printer, then you have the ability to use the -o options of the lp command. If it is set up as a remote printer attached to another server, then the -o options generally don't work and you won't be able to select the tray.

The applicable -o options are "-o ubin", -o "lbin" (for upper and lower bin) or "-o bin#" to specify the bin number.


Pete

Pete
Patrice Blanchard_2
Frequent Advisor

Re: print from Unix on a specified tray

Sorry about that, forgot to give you info about my setup.

Printer is setup as remote on a windows 2003 server. We tried seting it up on a jetdirect but we has performance issue.

Regards

Patrice
Steven1970
Occasional Advisor

Re: print from Unix on a specified tray

There are 2 ways I'd go about this:
1. Change the default tray on the printer
2. Prepend some simple PCL to the file to force the tray selection. IIRC the string is:
E
&l1h

Cheers
Steven
Patrice Blanchard_2
Frequent Advisor

Re: print from Unix on a specified tray

Thanks.

You were right, -obin2 does not work on a remote.

i can't change the default tray.

tried to desable the other trays in the driver file but it didn't worked.

Where do you want me to insert the strings?

Regards