SOLVED Creating a cron job problem

polo49

Member
Apr 23, 2018
8
1
3
Africa
cPanel Access Level
Root Administrator
I am really sorry for my bad english. I need to set up a cron job on my cpanel to receive emails and tweets on my ushahidi deployment. So I'm using a linux command that runs well by ssh. This is the "cd ~ / public_html / astilV10 / platform && ./bin/ushahidi incoming dataprovider" command. But when I write this command in the cron job, I have no result. I created a Linux script where I put this command and in a cron job, I put this "/ bin / sh /home/hialabgw/public_html/astilV10/cron.sh" but I still have not of result. please help me. thank you in advance
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello @polo49,

Can you manually run the command while logged in via SSH as the account user to verify that it works as expected from the command line?

Thank you.
 

polo49

Member
Apr 23, 2018
8
1
3
Africa
cPanel Access Level
Root Administrator
Thank you very much. Yes, this command works very well in my command line. I solved this problem using this command "cd / home / hialabgw / public_html / astilV10 / platform && / usr / local / bin / php -q bin / ushahidi incoming dataprovider". thank you for you answer