<== Back to shrinkprint project
textfile.txt
and hh305
as two parameters for use within the pipeline?textfile.txt
would be the first argument to the script, and hh305
would be the second argument to the script.shrinkprint
will always be landscape. Enscript
has options to set landscape or portrait orientation, but don't use those options when you call enscript
within shrinkprint
.Ctrl+D
exits the prompt and the file is then printed. What's up?Enscript
puts that filename-date-time-page-number
information at the top of pages by default. Force enscript
not to include that information.hh310
), or can it be assumed that the targeted printer is accessible.lpr
and nothing will be printed. If you're working in HH 305, use hh305
. If you're working in HH 310, use hh310
.shrinkprint
it doesn't recognize it as a command. What's up?shrinkprint
script executable once with chmod +x shrinkprint, then either copy it to your ~/bin directory or run it with ./shrinkprint …Enscript
has a columns option that can duplicate psnup's
functionality for the purposes of the shrinkprint
script. Should I use that option?enscript
option.Enscript
is sending its output directly to the printer, instead of piping output to psnup
as required. At the same time, psnup
is piping some of its output to lpr
, and lpr
is printing that page of postscript code. So, the page of actual output you're getting at the printer is from enscript
, while the page of useless postscript you're getting is from psnup … | lpr …
. The fix is to make enscript
send its postscript output to standard output, so that the postscript will actually be piped to psnup
.<== Back to shrinkprint project