setting user cron timeout to 3600 Sec (1H) + NOT RETRYING when using wget

This commit is contained in:
Benjamin Sonntag 2014-09-03 15:10:18 +02:00
parent c96f928056
commit 58d16d47f9
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ now=$5
user=$6 user=$6
password=$7 password=$7
timeout=5 timeout=3600
for CONFIG_FILE in \ for CONFIG_FILE in \
/etc/alternc/local.sh \ /etc/alternc/local.sh \
@ -55,7 +55,7 @@ tmpfile=$(mktemp /tmp/altern-cron-id$id-$$.XXX)
( (
echo -e "Here the report for the scheduled task for the cron #$id in your AlternC configuration (from http://$FQDN)\n\n" echo -e "Here the report for the scheduled task for the cron #$id in your AlternC configuration (from http://$FQDN)\n\n"
echo -e "\n---------- BEGIN ----------" echo -e "\n---------- BEGIN ----------"
bash -c "wget -O - --no-check-certificate --http-user=$(urldecode $user) --http-password=$(urldecode $password) \"$(urldecode $url)\" --timeout=$timeout 2>&1" bash -c "wget --tries=1 -O - --no-check-certificate --http-user=$(urldecode $user) --http-password=$(urldecode $password) \"$(urldecode $url)\" --timeout=$timeout 2>&1"
echo -e "\n---------- END ----------" echo -e "\n---------- END ----------"
) > "$tmpfile" ) > "$tmpfile"