I am using php 5.3.3 and Apache 2.0 with codeigniter framework. In that i have set cron job for download file for every minutes. When i run my function through url it is working. But in cron job set means not working. I have set cron using root login and checked in cmd, it shows it running. This is my url, http://ef.efvoice.com/artbak/index.php?module=sales&view=auto_download
But it not download any files. So for that i have check using DB insert instead of download code. For that also not working. Below i have given the cron set code ,
crontab -e -u myusername
*/1 * * * * wget -O - http://ef.efvoice.com/artbak/index.php?module=sales&view=auto_download
*/1 * * * * lynx http://ef.efvoice.com/artbak/index.php?module=sales&view=auto_download
/etc/init.d/crond restart
I have set both ways in cron wget -o
and lynx
. But when i check in same cmd mode,
tail /var/log/cron
it shows it running . I don't know what mistake i did. So please any one help me. Thanks in advance.
I have tried these steps also, check screen shot, but not working. If any other ways are there.