[go: up one dir, main page]

Menu

[r4]: / scripts / printdouble  Maximize  Restore  History

Download this file

17 lines (16 with data), 498 Bytes

#! /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