Part of my script is available below.
…………………..
# create filename of http://oiswww.eumetsat.int/%7Eidds/images/out/SDDI-20051110-1100-RGB-08-DUST-00-800.jpg
#set -A eumetdate "${mydate[0]}${mydate[1]}${mydate[2]}-${mydate[3]}00"
if [[ ${mydate[3]}-1 -le 9 ]]
then
eumethour="0"$((${mydate[3]}-1))"00"
elif [[ ${mydate[3]}-1 -ge 10 ]]
then
eumethour=$((${mydate[3]}-1))"00"
fi
eumetdate="${mydate[0]}${mydate[1]}${mydate[2]}-$eumethour"
#create http address into a variable and then do wget on variable
# whole globe
eumetaddress="http://oiswww.eumetsat.int/%7Eidds/images/out/SDDI-"$eumetdate"-RGB-08-DUST-00-800.jpg"
wget -D.eumetsat.int -A jpg -t 2 -T 900 --cache=off \
-d -N $eumetaddress -a wget_logs/wget_log_eumetsat -P ../forecast_web/eumetsat
………………………………
Message in log file…
DEBUG output created by Wget 1.10.2 (Red Hat modified) on linux-gnu.
--15:10:01-- http://oiswww.eumetsat.int/%7Eidds/images/out/SDDI-20051230-1400-RGB-08-DUST-00-800.jpg
=> `../forecast_web/eumetsat/SDDI-20051230-1400-RGB-08-DUST-00-800.jpg'
Resolving oiswww.eumetsat.int... 81.2.148.34
Caching oiswww.eumetsat.int => 81.2.148.34
Connecting to oiswww.eumetsat.int|81.2.148.34|:80... Closed fd 4
failed: Connection timed out.
Releasing 0x08081e20 (new refcount 1).
Retrying.
--15:13:16-- http://oiswww.eumetsat.int/%7Eidds/images/out/SDDI-20051230-1400-RGB-08-DUST-00-800.jpg
(try: 2) => `../forecast_web/eumetsat/SDDI-20051230-1400-RGB-08-DUST-00-800.jpg'
Found oiswww.eumetsat.int in host_name_addresses_map (0x8081e20)
Connecting to oiswww.eumetsat.int|81.2.148.34|:80... Closed fd 4
failed: Connection timed out.
Releasing 0x08081e20 (new refcount 1).
Giving up.
DEBUG output created by Wget 1.10.2 (Red Hat modified) on linux-gnu.
--15:16:25-- http://oiswww.eumetsat.int/%7Eidds/images/out/SDDI-20051230-1400-RGB-08-DUST-04-1237.jpg
=> `../forecast_web/eumetsat/SDDI-20051230-1400-RGB-08-DUST-04-1237.jpg'
Resolving oiswww.eumetsat.int... 81.2.148.34
Caching oiswww.eumetsat.int => 81.2.148.34
Connecting to oiswww.eumetsat.int|81.2.148.34|:80…
--------------------------------------------------------------------------------------------------------------------------------------
WHY IS -t 2, -T 900 and the --cache=off options being ignored when I run this in a cron job?
My script runs perfectly all right when run without cron, as soon as I use cron wget stops working.
Thanks,
Elisabeth
