Created
April 10, 2019 21:54
-
-
Save dewomser/d2d6cc6c5e459def6ee1a19756c874e9 to your computer and use it in GitHub Desktop.
Webcam grab Photos Bashscript
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 | |
sleep 60 | |
/usr/bin/wget -P /home/foo/falkencam/$(date +%m_%d_%y) http://falken3-webcam.worms.de/webcam/current.jpg | |
# crontab to get Photo every 5 minutes | |
#*/5 * * * * /home/foo/bin/falkencam.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
crontab lädt alle 5 Minuten das Script neu.
Weil das Photo zur vollen 5 Minuten erneuert wird, wartet es 60 Sekunden länger, bis das neue Photo auf dem Server richtig geladen ist.