Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 WHM/cPanel 帐户,并且创建的每个托管帐户都需要在 cPanel 中输入一个 cron 作业列表。
是否有一种更简单的方法来每次创建这些 cron 作业,而不是在每次创建新的 cPanel 帐户时手动将每个作业输入 cPanel >> Cron Jobs?
感谢您对此的任何帮助。
您可以在 /scripts/postwwwacct 上使用 shell 脚本和命令 crontab 每次创建帐户后,此脚本 (/scripts/postwwwacct) 在用户 cron 上插入您想要的 cron 作业。
人 cron 和人 crontab
crontab -u user file_with_cronjobs
在 file_with_cronjobs 上的用户内容 cronjobs 的这个 cron 之后