2021-05-20 20:39:00 +02:00
|
|
|
#!/bin/bash
|
2021-05-21 16:29:45 +02:00
|
|
|
if [ "$#" -ne 3 ];
|
2021-05-20 20:39:00 +02:00
|
|
|
then
|
|
|
|
echo "Pas assez d'arguments"
|
|
|
|
exit 2
|
|
|
|
fi
|
|
|
|
ssh $1 /bin/bash<< EOF
|
|
|
|
cd /opt/scodoc/Products/ScoDoc/
|
2021-05-21 16:29:45 +02:00
|
|
|
scotests/scointeractive.sh -r ${2} scotests/${3}
|
2021-05-20 20:39:00 +02:00
|
|
|
EOF
|
|
|
|
ssh $1 'systemctl restart ScoDoc.service'
|