The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cron issue

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

  1. scotch333

    scotch333 Registered

    Joined:
    Jan 23, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    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?

    Thanks

    John
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    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
     
Loading...

Share This Page