Home Man
Search
Today's Posts
Register

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

Tags
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 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 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 01:17 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password