Jump to content
MakeWebGames

Cron Help : no such file or directory :S


shedh

Recommended Posts

right i have made a cron file and tested it in my web browser. The problem i am having is that i can't get my server to run the damn thing.

i keep getting a cron demon email saying this:

/bin/sh: /var/www/vhosts/xxx/subdomains/xxx/httpdocs/cron.php?code=xxx: No such file or directory

 

what is the problem here and how do i get it to run?

Link to comment
Share on other sites

Re: Cron Help : no such file or directory :S

What is the complete command you use for your crontab?

It seems you are using the sh shell(default linux shell), and trying to run the file via that, it would not work because you have to use an absolute path, and you have a GET method string attached to your path(used by web servers, not shells).

You could essentially modify the script that sh would recognize the file as being a PHP executable file, but it would be to much of a waste.

Either try running the crontab via the URL(using curl), or use PHP to run it(php path/to/script.php).

Or just post the complete command you are supplying for the crontab.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...