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 issue

Discussion in 'General Discussion' started by scotch333, Jul 14, 2009.

  1. scotch333

    scotch333 Registered

    Jan 23, 2009
    Likes Received:
    Trophy Points:
    I have setup a cron job that all seems to be ok, but I keep getting the following report from Cpanel -

    /bin/sh: /home/linkcare/public_html/listmail/dailymail.php?pw=monkey1: No such file or directory

    - I have checked and double checked the directory and file and all is correct. What else could be causing this error?


  2. Spiral

    Spiral BANNED

    Jun 24, 2005
    Likes Received:
    Trophy Points:
    Something in your cron is trying to to access the line shown as a file
    instead of executing the script and since you are trying to pass a variable
    in that line to the php script, it is clear you meant to call the script instead
    of access it as a file --- can we say big oops? :rolleyes:

    Actually it's a common mistake.

    Usually comes from trying to call a web script from a cronjob directly
    instead of piping it through the web with GET, wget, or lynx.

    If it's written for CLI (Command Line Interface) then you can call it
    directly, otherwise you need to call it from the web using one of the
    items I listed above from your cron job.

    You should also be using the web address instead of the path on the server

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