UNIX for Dummies Questions & Answers

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

curl from crontab not working

Thread Tools Search this Thread Display Modes
Old 06-27-2008
eBay's Unix or Linux Image
eBay eBay is offline
Registered User
Join Date: Jun 2008
Last Activity: 2 July 2008, 12:49 PM EDT
Location: Spokane
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
Old 06-29-2008
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
Join Date: Mar 2005
Last Activity: 10 January 2017, 8:10 AM EST
Location: classification algos
Posts: 3,215
Thanks: 19
Thanked 31 Times in 28 Posts
provide the absolute path for curl

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

« 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
crontab not working isaacniu Solaris 6 01-09-2012 05:41 PM
crontab is not working!! getrue Red Hat 14 09-08-2011 11:06 AM
crontab is not working. getrue Solaris 6 07-27-2011 12:34 AM
crontab not working lg123 UNIX for Dummies Questions & Answers 2 04-24-2011 03:47 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 03:00 AM.

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

Not a Forum Member?
Forgot Password?