[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to print duplex when using lpr

On Thu, 11 Dec 2014, Kevin O'Gorman wrote:
> I sometimes use lpr in a pipeline getting postscript from groff. My
> printer (HP CP2025dn) has a duplexer and I'd like to use it. I could
> look up the Postscript for that, but I'm wondering if there's a way to
> force either of groff or lpr to do it for me.

If you're using cups, you can do the following:

lp -o sides=two-sided-long-edge filename;

man lp; for details.

Don Armstrong                      http://www.donarmstrong.com

The attackers hadn't simply robbed the bank. They had carried off
everything portable, including the security cameras, the carpets, the
chairs, and the light and plumbing fixtures. The conspirators had
deliberately punished the bank, for reasons best known to themselves,
or to their unknown controllers. They had superglued doors and
shattered windows, severed power and communications cables, poured
stinking toxins into the wallspaces, and concreted all of the sinks
and drains. In eight minutes, sixty people had ruined the building so
thoroughly that it had to be condemned and later demolished.
 -- Bruce Sterling, _Distraction_ p4

Reply to: