#! /bin/csh -f set fn=$1:t set fn=$fn:r /usr/local/bin/gs -dNOPAUSE -sDEVICE=jpeg -sOutputFile=$HOME/pad/$fn.jpg -- $1 chmod o+r ~/pad/$fn.jpg exit