Jump to content
MakeWebGames

Cron Help : no such file or directory :S


Recommended Posts

Posted

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?

Posted

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.

Posted

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

well i am using plesk and it doesn't show up like it should do this is how it looks on my cron tab

cron.gif

i have tried executing the file like normal using Internet Explorer and it has worked before

Posted

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

As mentioned, you are using the sh shell to run the script, and it cant do it.

Try the following it the command text box:

curl /var/www/vhosts/..../subdomains/..../httpdocs/cron.php

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