Miten crontab:iilla ladataan wviewweather vain realtime.txt ubuntu hakemistosta esim kerran /2min?
-tuffe-
Lainaus käyttäjältä: Tuffe - maanantai, 03.06.2013, 23:47
Miten crontab:iilla ladataan wviewweather vain realtime.txt ubuntu hakemistosta esim kerran /2min?
wviewweather ei ole tuttu, mutta varmaakin jotenkin...
2-59/2 * * * * cp polku/realtime.txt minne
http://linux.fi/wiki/Komentojen_ajastaminen
thanks!
crontab -e --> 2 * * * * /usr/local/var/real.sh
example ftp.sh scripts--_>
#!/bin/sh
ftp -i -n (ftp.abc.com) <<EOF
user (ftp user@com) (ftp password)
cd (/*put path)
lcd /usr/local/var/wview/img/
put file.txt
quit
EOF