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.... Link to comment https://forums.phpfreaks.com/topic/46587-cron-jobs/ 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 Link to comment https://forums.phpfreaks.com/topic/46587-cron-jobs/#findComment-226779 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 Link to comment https://forums.phpfreaks.com/topic/46587-cron-jobs/#findComment-226781 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 Link to comment https://forums.phpfreaks.com/topic/46587-cron-jobs/#findComment-226782 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 Link to comment https://forums.phpfreaks.com/topic/46587-cron-jobs/#findComment-226783 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 Link to comment https://forums.phpfreaks.com/topic/46587-cron-jobs/#findComment-226785 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. Link to comment https://forums.phpfreaks.com/topic/46587-cron-jobs/#findComment-226799 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? Link to comment https://forums.phpfreaks.com/topic/46587-cron-jobs/#findComment-226801 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 Link to comment https://forums.phpfreaks.com/topic/46587-cron-jobs/#findComment-226809 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 Link to comment https://forums.phpfreaks.com/topic/46587-cron-jobs/#findComment-226814 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? Link to comment https://forums.phpfreaks.com/topic/46587-cron-jobs/#findComment-226815 Share on other sites More sharing options...
electricblue Posted April 11, 2007 Share Posted April 11, 2007 Notice i've added the space. Link to comment https://forums.phpfreaks.com/topic/46587-cron-jobs/#findComment-226816 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.