Skip to content

Instantly share code, notes, and snippets.

@FredericJacobs
Last active December 11, 2015 08:29
Show Gist options
  • Save FredericJacobs/4573832 to your computer and use it in GitHub Desktop.
Save FredericJacobs/4573832 to your computer and use it in GitHub Desktop.
#/bin/bash
# Script that notices you when Mega is available.
WEBPAGE="https://www.mega.co.nz/"
while true
do
if [ "$(curl -s $WEBPAGE )" != "Access Denied" ]
then echo "The wait is over" | say "Time to sign up"
else
sleep 60
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment