By milosh on
My hosting does not allow to use wget commands for cronjobs, so I have to to use curl-cron.sh file for cron. I have changed address line "http://yoursite.com/curl.php" in curl-cron.sh into actual address, but when my cronjob runs, a following error is mailed to me:
curl: (3) malformed
Any Ideas, what might be wrong? The address is correct and I have tried both versions -- http://site.com/curl.php and http://www.site.com/curl.php
Comments
no- wrong
no- wrong
you need to use a (real) cron job at your host to call the .sh script. The .sh script will then connect via cURL to yoursite.com/cron.php to trigger the Druapl "cron" code. So, the address in the .sh file needs to be /cron.php.
You can also manually trigger the Drupal "cron" by going in your browser to yoursite.com/cron.php. You'll see a blank screen, but if you check you log you'll see that it was run.
---
Work: BioRAFT
Thanks! :) Actually I used a
Thanks! :)
Actually I used a real cron job to call .sh script, but got this error above... However, for me the problem was solved in a simpler way, by adding the line:
curl --silent --compressed http://www.mysite.com/cron.php
in the real cron job. However I will try out your suggestion later today to see, whether the root addres of the site or my host settings caused the problem.