aboutsummaryrefslogtreecommitdiff
path: root/xalarm
diff options
context:
space:
mode:
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