Created
November 19, 2014 21:50
-
-
Save muru/7d7f7bd4b6f3b53135bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true | |
do | |
clear | |
size=$(ls -l /var/spool | wc -c) | |
sleep 30 | |
newsize=$(ls -l /var/spool | wc -c) | |
if (( $size < $newsize )) | |
then | |
echo "You've got mail!" | |
else | |
echo "Sorry no mail yet" | |
fi | |
sleep 30 | |
done & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment