[英]call codeigniter URL using curl command linux
I have a web site in codeigniter. 我在codeigniter中有一个网站。 I have created some cronjob url's , now i am trying to hit those url from my Linux server.
我已经创建了一些cronjob网址,现在我正尝试从Linux服务器上访问这些网址。 but it is not working.
但它不起作用。 URL is as below
网址如下
curl https://www.sampletest.com/samnet/admin/panel/cronjobs/transaction
This url basically return nothing. 此url基本不返回任何内容。 and sends email notification.
并发送电子邮件通知。 If i hit this url from webbrowser it works properly.
如果我从webbrowser命中此URL,它将正常工作。 and send notification mail.
并发送通知邮件。 I need to call this url in cron.
我需要在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.
您可以根据需要设置cronjob。
Naturally, you can hit this URL something like this 自然,您可以像这样访问该URL
wget http://website.com/files/file.zip
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.