Home Man
Today's Posts

This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in the UNIX for Beginners Questions & Answers forum.

curl from crontab not working

beginners, cron, crontab


Thread Tools Search this Thread
# 1  
Old 06-27-2008
curl from crontab not working

I've got a little php app that I'm trying to call from a crontab entry that's not working. The entry looks like this:

55 * * * * curl -m 600 --connect-timeout 120 http://www.mysite.com/ad_renewal.php

When I run curl from the command line, it works fine and I get an email saying so. However, from within cron, it doesn't go. I tried a little echo line that wrote hello to a file and that worked fine so I think I'm doing OK with my cron properties.

Strange. Maybe there's some security restriction on curl? Not sure what it could be.

Oh, yeah, originally, only had curl url and I added the other options thinking that it might be timing out or something. The process does take about 45 seconds to run.
# 2  
Old 06-29-2008
provide the absolute path for curl

also redirect STDOUT and STDERR to a file, so that it would be easier for debugging

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script containing Curl doesn't run with crontab beautymind Shell Programming and Scripting 14 11-08-2017 11:19 AM
Working web service call not working with curl abigbear Shell Programming and Scripting 3 08-13-2017 03:02 PM
Curl to download using Linux not working Pavan Kumar19 UNIX for Beginners Questions & Answers 4 09-12-2016 11:46 AM
Crontab not working Junaid Subhani Shell Programming and Scripting 7 06-06-2015 03:02 PM
Crontab not working krebe Linux 4 02-12-2013 04:50 AM
Crontab not working, please help samantha13 UNIX for Advanced & Expert Users 0 08-02-2012 12:25 PM
crontab is not working!! getrue Red Hat 14 09-08-2011 11:06 AM
crontab not working rajesh_hv UNIX for Advanced & Expert Users 4 10-28-2008 07:45 AM
crontab NOT working baanprog UNIX for Advanced & Expert Users 2 09-26-2006 12:11 PM
crontab not working right kymberm UNIX for Dummies Questions & Answers 3 07-09-2003 04:21 PM

All times are GMT -4. The time now is 11:33 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
Show Password