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!

Cron Job issues

Discussion in 'General Discussion' started by patrick cooper, Feb 28, 2018.

  1. patrick cooper

    patrick cooper Registered

    Joined:
    Feb 28, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Perry GA
    cPanel Access Level:
    Root Administrator
    So I have a Wordpress client that needs an XML feed imported twice daily. I'm using WP All Import and have imported the file multiple times.

    The plugin has a section for cron scheduling and I have done that specifically the way it instructs. The email that I get every time the execute script runs says
    /bin/bash: URL: No such file or directory

    I have no clue what that means or if that even means the script won't run. Anyone have any clues?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,870
    Likes Received:
    1,811
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It looks like it's attempting to have the cron job run the script directly from a URL. You'd need to modify it to use the path to the PHP script (e.g. /home/username/public_html/path/to/file.name).

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. patrick cooper

    patrick cooper Registered

    Joined:
    Feb 28, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Perry GA
    cPanel Access Level:
    Root Administrator
    I'm using the trigger and execute URLs that the WP All Import plugin is telling me to use. No idea what the deal is.
     

    Attached Files:

  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,870
    Likes Received:
    1,811
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The image you provided shows that it's recommending you to create the cron jobs via cPanel. Can you take a screenshot of the cron jobs you've created in the cPanel interface so we can see how they are configured?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. patrick cooper

    patrick cooper Registered

    Joined:
    Feb 28, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Perry GA
    cPanel Access Level:
    Root Administrator
    Sure, here is what I have set up. The first one was already there, so I left it.
     

    Attached Files:

  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,870
    Likes Received:
    1,811
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You've only entered the URL as the command. Note the use of "wget" in the command from the example in your earlier image. You'd need to ensure it matches the example.

    Thank you.
     
    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