Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while true; do
- # --quiet: don't show stats
- # -p: get required files for site to load
- # -nc: don't download files that exist
- wget --quiet -p -nc http://bocken.gavle.se/kamera/
- date=$( date +%s )
- # mv so that wget -nc still download the picture
- sudo mv bocken.gavle.se/kamera/bocken.jpg saved/bocken$date.jpg
- sleep 2
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement