Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Print in landscape mode from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Print in landscape mode from the command line
Authored by: eredhuin on May 22, '03 11:02:12PM

I fiddled briefly and came up with the one-liner

enscript -h -r -G -E -2 --color -i 2 -fCourier7 -o - fwdtest.cpp | ps2pdf - | lpr

Then I create a script in ~/bin/

for k in $* ; do
enscript -h -r -G -E -2 --color -i 2 -fCourier7 -o - $k | \
ps2pdf -|lpr

and made it executable

chmod +x ~/bin/

[ Reply to This | # ]