From: Vincent Le Gallic Date: Mon, 17 Mar 2014 00:29:20 +0000 (+0100) Subject: [ckankecéfini] Pour afficher un alert localement quand un process distant ne tourne... X-Git-Url: http://gitweb.pimeys.fr/?p=scripts-20-100.git;a=commitdiff_plain;h=d8751d9f6ef43417588d84eb8460055c20cab90d [ckankecéfini] Pour afficher un alert localement quand un process distant ne tourne plus Special thanks to Nit pour notify-send --- diff --git "a/ckankec\303\251fini.sh" "b/ckankec\303\251fini.sh" new file mode 100755 index 0000000..6000577 --- /dev/null +++ "b/ckankec\303\251fini.sh" @@ -0,0 +1,10 @@ +#!/bin/bash + +# Pour alerter *localement* quand un truc est fini sur une machine *distante* + +where=$1 +what=$2 + +ssh ${where} "while [[ \"\$(pidof ${what})\" != \"\" ]]; do true; done" + +notify-send --urgency=low -i preferences-system-network "${what} done on ${where}"