From: Silvio Rhatto Date: Sat, 23 Sep 2017 00:24:44 +0000 (-0300) Subject: Sketched an at(1) implementation for xalarm X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4b7aaa0857aaf85334c9bb1870622a3a69412488;p=utils-x11.git Sketched an at(1) implementation for xalarm --- diff --git a/xalarm b/xalarm index 2eac2a5..712ee65 100755 --- a/xalarm +++ b/xalarm @@ -11,5 +11,11 @@ DELAY="${1:-10m}" shift MESSAGE="${*:-Alarm!}" +# AT(1) implementation +# Example run: xalarm 1minute mymessage +#echo "xmessage $MESSAGE" | at now +$DELAY + +# Sleep implementation +# Example run: xalarm 1m mymessage sleep $DELAY xmessage $MESSAGE