[英]Create cronjob in kloxo to run .php file every x minutes
I am trying to add a cronjob in the kloxo based user interface, 我试图在基于kloxo的用户界面中添加cronjob,
So i navigate into cron scheduled tasks -> add standard -> Select x minutes, select 'all' in all other fields (hour, day, week, month, ..), then add the path in the last field: /home/piscolab/public_html/keepyourlinks.com/includes/boot.php
因此,我进入了cron计划的任务->添加标准->选择x分钟,在所有其他字段(小时,天,周,月,..)中选择“全部”,然后在最后一个字段中添加路径: /home/piscolab/public_html/keepyourlinks.com/includes/boot.php
But the file is never executed, 但是文件永远不会执行
what am i missing? 我想念什么?
find the problem: check the cron log. 找到问题:检查cron日志。 if you dont know where your cron log is going to check the syslog. 如果您不知道您的cron日志将在哪里检查系统日志。 if you cant find anything there kill the cron proccess and start a new one with the -L /yourlogpath/ parameter specified. 如果找不到任何内容,请杀死cron进程并使用-L / yourlogpath /指定的参数启动一个新进程 。 wait till the job is supposed to run and check the log after. 等到应该运行该作业,然后再检查日志。
fix your problem or come back here to get help 解决您的问题或返回此处获取帮助
as i see you dont specify what program should run the *.php file. 如我所见,您没有指定哪个程序应运行* .php文件。 change that to whatever program you want to run the php file. 将其更改为您要运行php文件的任何程序。
if you use linux and the gui/webgui sux, fall back to shell. 如果您使用linux和gui / webgui sux,请使用Shell。 cron jobs are defined within /etc/spool/crond/crontab/root (or something similar to that, cant remember the exact path right now, but using TABSTOP will do the job for you). cron作业是在/ etc / spool / crond / crontab / root中定义的(或类似的名称,现在不记得确切的路径,但是使用TABSTOP可以为您完成该作业)。 the crontab syntax can be seen here and here . crontab语法可以在这里和这里看到。 Cron newbies go here as well. Cron新手也要去这里。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.