Skip to content

Instantly share code, notes, and snippets.

@bgreenlee
Created Jul 21, 2010
Embed
What would you like to do?
#!/bin/bash
# Pop up a reminder at given time (or a given amount of time from now)
#
# Usage:
# remindme "Go home" 5pm
# remindme "Move the car" +2 hours
# remindme "Call Bob" tomorrow
#
# For more on possible time formats, 'man at'
#
# Note: 'at' must be enabled first on OSX:
# sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist
cmd=$(printf '%q' $1)
shift
echo "/usr/local/bin/growlnotify -m \"$cmd\"" | at "$*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment