2017-06-10 55 views
0

当我通过使用chrome运行我的网址https://localhost/panel/index.php?m=user_games&p=check_expire时,运行代码并在expier时关闭服务器。如何使用wget命令运行变量?

但是,当我需要运行这个作为使用此命令crontab

* * * * * * wget -q --spider "https://localhost/panel/index.php?m=user_games&p=check_expire" 

什么happend,为什么呢?

回答

0

由于您定义了错误的crontab命令,看起来crontab无法运行。你把六个*,因为我知道我们只需要五个*。请尝试这样

* * * * * wget -q --spider "https://localhost/panel/index.php?m=user_games&p=check_expire" 

为了确保您crontab运行,请在wget执行创建日志。