I have a web page at http://mydomain.com/process/2909
I want a cron job to automatically hit this page every night at 2 am. I was going to get cron to run a PHP script that opens the website with CURL like so:
$bocURL = 'http://mydomain.com/process/2909'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $bocURL); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $bocFile = curl_exec($ch); curl_close($ch);
Is there a way for me to do this directly from a cron command without having to write PHP script?