ajoin polku/ chmod +x kamera.sh
crontab polku==>*/2 * * * * sh /web_camera/kamera.sh
mail viesti ==>X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=weather>
matti.jpg: Lupa evätty
Missä vika voi olla?
webcam scriptin alku näyttää tällä,==>
#!/bin/bash
#A short script to download timed snapshots of a file that undergoes regular updates.
#The url of the file
url="
http://192.168.1.***:1**/snapshot.cgi?user=webca***&pwd=*****&next_url=kamera2.jpg"
#This expression extracts the suffix part of the url from the url
suffixpart=${url##*.}
#The interval at which the file is fetched.
#N.B. Some sites may not take kindly to short intervals.
interval=5s