From b2cb90bc88c1fd450b7c908ff9f12d9ac122d113 Mon Sep 17 00:00:00 2001 From: Francesco Minnocci Date: Thu, 3 Mar 2022 19:09:44 +0100 Subject: [PATCH] printa4: simplify links --- printa4 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/printa4 b/printa4 index ba82544..7f0ec4c 100755 --- a/printa4 +++ b/printa4 @@ -15,16 +15,16 @@ _user="minnocci" main() { if $NO_CLI; then for f in $@; do - scp $f ${_user}@ssh1.dm.unipi.it:/student/home/${_user}/printa4-$f - ssh -XY ${_user}@ssh1.dm.unipi.it okular /student/home/${_user}/printa4-$f --print - ssh ${_user}@ssh1.dm.unipi.it rm /student/home/${_user}/printa4-$f + scp $f ${_user}@ssh1.dm.unipi.it:/home/${_user}/printa4-$f + ssh -XY ${_user}@ssh1.dm.unipi.it okular /home/${_user}/printa4-$f --print + ssh ${_user}@ssh1.dm.unipi.it rm /home/${_user}/printa4-$f done else options="$1"; shift for f in $@; do - scp $f ${_user}@ssh1.dm.unipi.it:/student/home/${_user}/printa4-$f - ssh ${_user}@ssh1.dm.unipi.it lp $options /student/home/${_user}/printa4-$f - ssh ${_user}@ssh1.dm.unipi.it rm /student/home/${_user}/printa4-$f + scp $f ${_user}@ssh1.dm.unipi.it:/home/${_user}/printa4-$f + ssh ${_user}@ssh1.dm.unipi.it lp $options /home/${_user}/printa4-$f + ssh ${_user}@ssh1.dm.unipi.it rm /home/${_user}/printa4-$f done fi }