Mr. G
2015-04-13 18:41:02 UTC
Cron and Curl don't play well together, on my machine at least.
I've a rexx script which uses curl to download a number of files and cron
to launch the script. In the beginning, all was well. Over time, It
started occassionally giving a 'can't resolve host' rc. Now, 'can't
resolve host' is 100% of the time.
Manually starting the script from a cmd line or program object works every
time and the script does its thing.
What I've tried:
Moving the time slot in cron = no good
Using a different cron :) = no good
Wget instead of curl = no good....even from a cmd line, a simple 'wget url'
connects, but the server never responds to the request. Options in .wgetrc
are tries and waitretry.
curl version 7.20.0 (v 7.20.1 reports missing 'kcrypt04.' which I presume
is an openssl dll and there is no such animal either in the 1.0.0 version
or the latest drop of last week or so.
url in question =
http://www.equibase.com/static/chart/pdf/index.html?SAP=HLN
Any ideas as to why curl can't resolve host when script is started from
cron, but when started manually, curl has no problems? Oh, and it is NOT
started detached in cron.
---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com
I've a rexx script which uses curl to download a number of files and cron
to launch the script. In the beginning, all was well. Over time, It
started occassionally giving a 'can't resolve host' rc. Now, 'can't
resolve host' is 100% of the time.
Manually starting the script from a cmd line or program object works every
time and the script does its thing.
What I've tried:
Moving the time slot in cron = no good
Using a different cron :) = no good
Wget instead of curl = no good....even from a cmd line, a simple 'wget url'
connects, but the server never responds to the request. Options in .wgetrc
are tries and waitretry.
curl version 7.20.0 (v 7.20.1 reports missing 'kcrypt04.' which I presume
is an openssl dll and there is no such animal either in the 1.0.0 version
or the latest drop of last week or so.
url in question =
http://www.equibase.com/static/chart/pdf/index.html?SAP=HLN
Any ideas as to why curl can't resolve host when script is started from
cron, but when started manually, curl has no problems? Oh, and it is NOT
started detached in cron.
---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com