Skip to content

Instantly share code, notes, and snippets.


joeykrim/ Secret

Forked from poliva/
Created Oct 20, 2013
What would you like to do?
mkdir -p /tmp/googleplay/
rm /tmp/googleplay/after 2>/dev/null
mv /tmp/googleplay/now /tmp/googleplay/after
curl "${URL}" -o /tmp/googleplay/now
len=`diff /tmp/googleplay/now /tmp/googleplay/after |wc -l`
if [ $len != 0 ]; then
echo "${URL}" > /tmp/content.txt
cat /tmp/googleplay/now > /tmp/che.html
/usr/bin/mutt -x -s "Nexus5 available on GooglePlay" -a \
/tmp/che.html -- ${EMAIL} < /tmp/content.txt

This comment has been minimized.

Copy link
Owner Author

@joeykrim joeykrim commented Oct 20, 2013

Quick setup tips:
Setting up postfix to work with Google Apps -

Setting up this script:
chmod +x

Use the following line for crontab to run every 5 minutes:
*/5 * * * * /home/mydirectory/
good guide on crontab -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment