-
-
Save khanof89/db00a2caeaa4b707fbde to your computer and use it in GitHub Desktop.
bash command
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 | |
while true; do | |
begin=`date +%s` | |
curl GET http://127.0.0.1/getmovieposter | |
end=`date +%s` | |
if [ $(($end - $begin)) -lt 5 ]; then | |
sleep $(($begin + 5 - $end)) | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment