Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Creating a cron job problem

Discussion in 'General Discussion' started by polo49, Jun 25, 2018.

Tags:
  1. polo49

    polo49 Member

    Joined:
    Apr 23, 2018
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,928
    Likes Received:
    1,819
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. polo49

    polo49 Member

    Joined:
    Apr 23, 2018
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,928
    Likes Received:
    1,819
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @polo49,

    I'm glad to see the issue was solved. Thank you for sharing the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice