From d8751d9f6ef43417588d84eb8460055c20cab90d Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Mon, 17 Mar 2014 01:29:20 +0100 Subject: [PATCH] =?utf8?q?[ckankec=C3=A9fini]=20Pour=20afficher=20un=20ale?= =?utf8?q?rt=20localement=20quand=20un=20process=20distant=20ne=20tourne?= =?utf8?q?=20plus?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Special thanks to Nit pour notify-send --- "ckankec\303\251fini.sh" | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 "ckankec\303\251fini.sh" 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}" -- 2.39.2