#! /bin/sh $@ CODE="$?" if [ "$CODE" = 0 ]; then notify-send -t 10000 "$1 succeeded" else notify-send -t 10000 "$1 failed ($CODE)" fi exit $CODE