Operating System - HP-UX
1833372 Members
3049 Online
110052 Solutions
New Discussion

How to print file (with both side page) in UNIX

 
Kenn Chen_1
Advisor

How to print file (with both side page) in UNIX

I want to print some files with double side page (printer output). How coul i issue the command to print both sided page. Thanks.
3 REPLIES 3
Steve Steel
Honored Contributor

Re: How to print file (with both side page) in UNIX

Hi


Add the option -oduplex to your print command.


If you have jetdirect then there are man pages for each printer script.

see /opt/hpnp/sh

do
export MANPATH=/opt/hpnp/man:$MANPATH
man net_ljx000

Or another name found in sh


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Ceesjan van Hattum
Esteemed Contributor

Re: How to print file (with both side page) in UNIX

As Steve already says, the -o option of lp is to be used. Normally, it is 'duplex' you want (like lp -oduplux). But the -o commands are printer-specific and can be found in your /etc/lp/interface/ directory. Look here in the interfacescript for all options of your printer.

Regards,
Ceesjan
Printaporn_1
Esteemed Contributor

Re: How to print file (with both side page) in UNIX

Hi,

use -od for automatic double side printing and -omd for manual double side printing.

anyway depend on your printer interface there could be explanation in /etc/lp/interface/

like this:


-d | d | -double | double) # set up for automatic double sided copy
duplex="yes";;

-md | md | -mdouble | mdouble) # set up for manual double sided copy
modeset="true"
outputmode="mdouble";;
enjoy any little thing in my life