Script


Remote bash

Téléchargement du script et exécution

wget -N https://<URL>/<script>.sh; bash <script>.sh

execute-bash-script-from-url

http://stackoverflow.com/questions/5735666/execute-bash-script-from-url
bash <(curl -H 'Cache-Control: no-cache' http://mywebsite.com/myscript.txt)
bash <(curl -H 'Cache-Control: no-cache' -s http://mywebsite.com/myscript.txt) -s = silent (pas d’affichage de progression ou des erreurs)

passing-parameters-to-bash-when-executing-a-script-fetched-by-curl

http://stackoverflow.com/questions/4642915/passing-parameters-to-bash-when-executing-a-script-fetched-by-curl curl http://foo.com/script.sh | bash -s arg1 arg2