#!/bin/sh
echo "$0";
echo "$1";
echo "$2";
echo "$3";
sshpass -p $(pass bchargei@bastion.desy.de) rsync -avP "$1" bchargei@bastion.desy.de:/afs/desy.de/user/b/bchargei/Print/
sshpass -p $(pass bchargei@bastion.desy.de) ssh bchargei@bastion.desy.de -XYC \
ssh pal<<EOF
cd /afs/desy.de/user/b/bchargei/Print/
lpr -H cups-hep -P t00ps$2 -o sides=two-sided-long-edge "$(basename "$1")"
EOF