ScodocTestClient/scriptExecution.sh

13 lines
295 B
Bash
Raw Permalink Normal View History

#!/bin/bash
#Ce script se rends sur le serveur scodoc et lance le script précisé sur celui ci
2021-05-21 16:29:45 +02:00
if [ "$#" -ne 3 ];
then
echo "Pas assez d'arguments"
exit 2
fi
ssh $1 /bin/bash<< EOF
2021-08-06 11:35:06 +02:00
cd /opt/scodoc/
2021-05-21 16:29:45 +02:00
scotests/scointeractive.sh -r ${2} scotests/${3}
EOF
# ssh $1 'systemctl restart scodoc'