Last active
June 18, 2017 19:33
-
-
Save marcolussetti/d50e8086dc2300e3975a0a9fe024ae19 to your computer and use it in GitHub Desktop.
Looper once hourly to check for new grades
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
!/bin/bash | |
mytru_output="$(./mytru-cli.py)" | |
until echo "$mytru_output" | grep ","; | |
do | |
echo "$(date)" | |
sleep 1h | |
mytru_output="$(./mytru-cli.py)" | |
done | |
echo "$mytru_output" | xargs sh mail.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment