aboutsummaryrefslogtreecommitdiff
path: root/xalarm
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-09-22 21:24:44 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-09-22 21:24:44 -0300
commit4b7aaa0857aaf85334c9bb1870622a3a69412488 (patch)
tree189d5469de43e4f1a64b006ef134a4907aa1cabe /xalarm
parentfa6b8ebc95f4dc8f30bf07c503f3bdbbc81d909c (diff)
downloadutils-x11-4b7aaa0857aaf85334c9bb1870622a3a69412488.tar.gz
utils-x11-4b7aaa0857aaf85334c9bb1870622a3a69412488.tar.bz2
Sketched an at(1) implementation for xalarm
Diffstat (limited to 'xalarm')
-rwxr-xr-xxalarm6
1 files changed, 6 insertions, 0 deletions
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