Using Cron and CURL in a custom module I am using a hook_cron (mymodule_cron) in my custom module, but would like to know whether the cron run is successful or not and has sent the data using CURL, and from there, update a specific column value in my sql table. How to get this status?

Part of my codes:

$options=array(
    CURLOPT_URL            =&gt; $urlCron, 
    CURLOPT_RETURNTRANSFER =&gt; true, 
    CURLOPT_HEADER         =&gt; false
);

$CURL=curl_init();
curl_setopt_array($CURL,$options);
$content=curl_exec($CURL);
curl_close($CURL);
You can utilise watchdog at the end of your hook_cron implementation, then implement db_update to update your desired table.