#!/bin/sh cat $1 | \ gs -sDEVICE=ppmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \ pnm2ppa --eco $2 $3 $4 $5 -i - -o /dev/lp0