cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How to use cURL in cron?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 8 Oct 2016 07:30:49 +0200

On Fri, Oct 07, 2016 at 08:15:08PM +0000, Chanikya Nadh Desu via curl-users wrote:
> Hi,
>
> I need this http request to be sent on the network.
>
> http://192.168.3.201/30000/15
>
> Now I used the following format in the crontab.
>
> 0 6 * * 1-5 curl --silent http://192.168.3.201/30000/15
>
> And nothing is happening!
>
> I am using Ubuntu 16.04

This is unlikely to be a curl problem. Is the curl binary in the standard
location (/usr/bin/curl)? Is the system time zone what you assume, given the
times in the crontab? Does the command work if run on the command-line?
Do you have crond installed and running?

>>> Dan
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ: https://curl.haxx.se/docs/faq.html
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-10-08