Neptunus Maris Posted April 11, 2007 Share Posted April 11, 2007 Does anybody know how to set up a cron tab? ive looked through all the tuts and dont get it.... Quote Link to comment Share on other sites More sharing options...
electricblue Posted April 11, 2007 Share Posted April 11, 2007 Do you have cPanel on your hosting/server? If not, and you're doing it on your home computer, have a check over: http://www.sophos.com/support/knowledgebase/article/12176.html Quote Link to comment Share on other sites More sharing options...
Neptunus Maris Posted April 11, 2007 Author Share Posted April 11, 2007 for instance whats the correct way to insert a command , ive tried everything in the tutorials but they suck...please help Quote Link to comment Share on other sites More sharing options...
Neptunus Maris Posted April 11, 2007 Author Share Posted April 11, 2007 Do you have cPanel on your hosting/server? If not, and you're doing it on your home computer, have a check over: http://www.sophos.com/support/knowledgebase/article/12176.html Yeah i have cPanel Quote Link to comment Share on other sites More sharing options...
electricblue Posted April 11, 2007 Share Posted April 11, 2007 It really depends on what you're trying to do. If you want to run a shell script, then just: /home/path/to/bash.sh > /dev/null 2>&1 If you want to execute a PHP file: /usr/bin/php /home/path/to/my_php_file.php > /dev/null Quote Link to comment Share on other sites More sharing options...
Neptunus Maris Posted April 11, 2007 Author Share Posted April 11, 2007 It really depends on what you're trying to do. If you want to run a shell script, then just: /home/path/to/bash.sh > /dev/null 2>&1 If you want to execute a PHP file: /usr/bin/php /home/path/to/my_php_file.php > /dev/null ok i see...ill try that then Quote Link to comment Share on other sites More sharing options...
Neptunus Maris Posted April 11, 2007 Author Share Posted April 11, 2007 Yeah im trying to run a php script, i tried that one did all the right paths...and it didnt work. Quote Link to comment Share on other sites More sharing options...
electricblue Posted April 11, 2007 Share Posted April 11, 2007 Remember your path is relative from the server, not from your domain, so it may need to be: /usr/bin/php /home/username/public_html/folder/file.php > /dev/null What have you got in there at the moment? Quote Link to comment Share on other sites More sharing options...
Neptunus Maris Posted April 11, 2007 Author Share Posted April 11, 2007 Remember your path is relative from the server, not from your domain, so it may need to be: /usr/bin/php /home/username/public_html/folder/file.php > /dev/null What have you got in there at the moment? /usr/bin/php/home/rdrvisio/public_html/mk/engine/xcj_month.php > /dev/null Quote Link to comment Share on other sites More sharing options...
electricblue Posted April 11, 2007 Share Posted April 11, 2007 /usr/bin/php /home/rdrvisio/public_html/mk/engine/xcj_month.php > /dev/null Quote Link to comment Share on other sites More sharing options...
Neptunus Maris Posted April 11, 2007 Author Share Posted April 11, 2007 /usr/bin/php /home/rdrvisio/public_html/mk/engine/xcj_month.php > /dev/null isnt that the same thing? Quote Link to comment Share on other sites More sharing options...
electricblue Posted April 11, 2007 Share Posted April 11, 2007 Notice i've added the space. 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.