通过命令行设置drupal cronjob

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了通过命令行设置drupal cronjob相关的知识,希望对你有一定的参考价值。

  1. # To edit a crontab through the command line, type the following (may need root priv):
  2.  
  3. crontab -e
  4.  
  5. # Add ONE of the following lines:
  6.  
  7. 45 * * * * /usr/bin/lynx -source http://example.com/cron.php
  8. 45 * * * * /usr/bin/wget -O - -q -t 1 http://www.example.com/cron.php
  9. 45 * * * * curl --silent --compressed http://example.com/cron.php
  10.  
  11. # This would have a lynx, wget, or curl visit your cron page 45 minutes after every hour.

以上是关于通过命令行设置drupal cronjob的主要内容,如果未能解决你的问题,请参考以下文章

如何定期将shell脚本的结果设置为Kubernetes Cronjob的参数

命令行脚本 PHP 不运行

flask_script

如何在 Drupal 8 中使用 Drush 命令创建新的内容类型

通过 windows 命令行设置代理,包括登录参数

flask-script