printa4: simplify links

removeproofs
Francesco Minnocci 3 years ago
parent da8014ceaa
commit b2cb90bc88
Signed by: BachoSeven
GPG Key ID: 2BE4AB7FDAD828A4

@ -15,16 +15,16 @@ _user="minnocci"
main() { main() {
if $NO_CLI; then if $NO_CLI; then
for f in $@; do for f in $@; do
scp $f ${_user}@ssh1.dm.unipi.it:/student/home/${_user}/printa4-$f scp $f ${_user}@ssh1.dm.unipi.it:/home/${_user}/printa4-$f
ssh -XY ${_user}@ssh1.dm.unipi.it okular /student/home/${_user}/printa4-$f --print ssh -XY ${_user}@ssh1.dm.unipi.it okular /home/${_user}/printa4-$f --print
ssh ${_user}@ssh1.dm.unipi.it rm /student/home/${_user}/printa4-$f ssh ${_user}@ssh1.dm.unipi.it rm /home/${_user}/printa4-$f
done done
else else
options="$1"; shift options="$1"; shift
for f in $@; do for f in $@; do
scp $f ${_user}@ssh1.dm.unipi.it:/student/home/${_user}/printa4-$f scp $f ${_user}@ssh1.dm.unipi.it:/home/${_user}/printa4-$f
ssh ${_user}@ssh1.dm.unipi.it lp $options /student/home/${_user}/printa4-$f ssh ${_user}@ssh1.dm.unipi.it lp $options /home/${_user}/printa4-$f
ssh ${_user}@ssh1.dm.unipi.it rm /student/home/${_user}/printa4-$f ssh ${_user}@ssh1.dm.unipi.it rm /home/${_user}/printa4-$f
done done
fi fi
} }

Loading…
Cancel
Save