From 4b7aaa0857aaf85334c9bb1870622a3a69412488 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 22 Sep 2017 21:24:44 -0300 Subject: Sketched an at(1) implementation for xalarm --- xalarm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '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 -- cgit v1.2.3