shedh Posted December 22, 2008 Share Posted December 22, 2008 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? Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted December 22, 2008 Share Posted December 22, 2008 Re: Cron Help : no such file or directory :S Well, obviously the cron can not find the file it needs to execute. Try going directly to the cron URL... Quote Link to comment Share on other sites More sharing options...
Spudinski Posted December 22, 2008 Share Posted December 22, 2008 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. Quote Link to comment Share on other sites More sharing options...
shedh Posted December 22, 2008 Author Share Posted December 22, 2008 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 i have tried executing the file like normal using Internet Explorer and it has worked before Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted December 22, 2008 Share Posted December 22, 2008 Re: Cron Help : no such file or directory :S Try adding this before the command "php -q ". Quote Link to comment Share on other sites More sharing options...
shedh Posted December 23, 2008 Author Share Posted December 23, 2008 Re: Cron Help : no such file or directory :S nope still no success Quote Link to comment Share on other sites More sharing options...
Spudinski Posted December 23, 2008 Share Posted December 23, 2008 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 Quote Link to comment Share on other sites More sharing options...
shedh Posted December 23, 2008 Author Share Posted December 23, 2008 Re: Cron Help : no such file or directory :S now i get a email saying: curl: (3) <url> malformed Quote Link to comment Share on other sites More sharing options...
Tonka Posted December 23, 2008 Share Posted December 23, 2008 Re: Cron Help : no such file or directory :S your using curl wrong, here's what should work curl http://yougame.com/cron.php or php -q /var/www/vhosts/..../subdomains/..../httpdocs/cron.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.