Skip to content

Instantly share code, notes, and snippets.

@philz
Last active December 20, 2015 06:18
Show Gist options
  • Save philz/6084283 to your computer and use it in GitHub Desktop.
Save philz/6084283 to your computer and use it in GitHub Desktop.
# License: Public Domain
$crontab -l
#6 * * * * /home/philip/bin/reservation.sh
###########################################################################
$cat bin/reservation.sh
#!/bin/sh
if curl -s http://rez.urbanspoon.com/reservation/start/2086 | grep -q 'Unfortunately'; then
exit
fi
mail -s "State Bird Provisions?" my_email_address@my_provider.com < /dev/null > /dev/null
###########################################################################
$stat bin/reservation.sh
File: `bin/reservation.sh'
Size: 196 Blocks: 4 IO Block: 32768 regular file
Device: 15h/21d Inode: 14733379 Links: 1
Access: (0764/-rwxrw-r--) Uid: ( 1004/ philip) Gid: ( 1004/ philip)
Access: 2013-01-31 22:54:06.524474640 -0800
Modify: 2013-01-31 22:54:06.538909769 -0800
Change: 2013-01-31 22:54:13.815649109 -0800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment