I have a web site in codeigniter. I have created some cronjob url's , now i am trying to hit those url from my Linux server. but it is not working. URL is as below
curl https://www.sampletest.com/samnet/admin/panel/cronjobs/transaction
This url basically return nothing. and sends email notification. If i hit this url from webbrowser it works properly. and send notification mail. I need to call this url in cron. No idea what should i do in this case. Please help me out
* * * * * wget -O - http://yoursite.com/tasks.php >/dev/null 2>&1
I believe this should work for you. You can setup your cronjob according to your requirement.
Naturally, you can hit this URL something like this
wget http://website.com/files/file.zip
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.