]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Sketched an at(1) implementation for xalarm
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 23 Sep 2017 00:24:44 +0000 (21:24 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 23 Sep 2017 00:24:44 +0000 (21:24 -0300)
xalarm

diff --git a/xalarm b/xalarm
index 2eac2a5bd7b84107cc437ea8fda55236988fa2eb..712ee6510adc69846495ade31e5cd135d618dae4 100755 (executable)
--- 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