cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

RE: Curl seg fault...i think..

From: John Wards <j.wards_at_sportnetwork.net>
Date: Sun, 24 Oct 2004 14:47:10 +0100

Quoting Justin Seitz <justin.seitz_at_shaw.ca>:
> You can still use curl_error() and curl_errno() within a command line
> script. If you are running it in cron and it's dying, then do something
> like this:
>
> Curl_exec($ch) or die (system("cat ".curl_error($ch)." >> error.txt"));
>
> When your cron job hits that curl_exec it will kick the error into
> error.txt, depending on your system you may have to run:
>
> Sh$ touch error.txt
>

Thanks, I'm uploading that just now and will run the script.

It took 40 minute to die the last time (its compleatly random...) so we'll
see...I bet it runs fine this time.

Oh I notice that 7.12.2 is out but freebsd have yet to release a port for it
(its only been 6 days I suppose ;-)) it wouldn't be anythign in 7.12.1 would
it? I think i get time based cookies (that was the only thing I noticed from
the change log) would a mem leak cause a seg fault?

John

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Received on 2004-10-24