X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=ckankec%C3%A9fini.sh;fp=ckankec%C3%A9fini.sh;h=60005770fae5d4d47a0fdcdfcc9a618495c870e3;hb=d8751d9f6ef43417588d84eb8460055c20cab90d;hp=0000000000000000000000000000000000000000;hpb=fc80c8887112c5e186b5058ab9418b7eb581884c;p=scripts-20-100.git 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}"