问题是设置cron作业


issue is to set cron job

我第一次尝试在linux服务器中设置cron作业。我想设置每5分钟运行一次我的文件。为此,我做了以下事情:

1. login through cpanel
2. Click Cron Jobs under Advance option.
3. In Add New Cron Job, select every 5 minutes in Common Settings and in Command text box write down the code */5 * * * * wget http://www.forwardx.in/sri/test.php  > /dev/null 
4 Click on the Add New Cron Job button.

但我收到了类似"-"的错误:1:crontab文件中有错误的命令错误,无法安装。

如何解决这个问题?请帮帮我。

我相信,如果您从常见设置中选择计时,您只需要键入命令

CCD_ 1。

你也在输入时间安排。试着省略计时部分。

路径中可能没有设置wget,所以请尝试完整路径。这可能应该是"/usr/bin/wget"而不是"wget"