iGREAT Code
Status: Beta
Brought to you by:
jgonzamol
#! /bin/bash
if [ $# != 0 ] ; then if [ $1 = "-h" ] ; then
echo "Printing 2 pages-side PostScript in 'montalban' "
echo "Usage: ${0##*/} [-h] [-p <printer>] <file> [<file>...]"
exit 0
fi ; fi
#if [ $1 = "-p" ] ; then
# if [ $# == 3 ] ; then
# echo -n "$3 -> $2 : "; cat $3 | rsh remero lp -d $2 -o hduplex
# fi
# exit 0
#fi
for f in $* ; do
# echo -n "$f: "; cat $f | rsh remero lp -d torchia -o hduplex
pstops -pa4 2:0\(0cm,0cm\),1U\(21.5cm,29.5cm\) $f | lpr -Pmontalban
done