作者:白色的睡 | 来源:互联网 | 2023-05-19 04:54
IneedtoinstallsomecronjobswithmyUbuntuinstallationpackage.Theonesthatruneverydayor
I need to install some cron jobs with my Ubuntu installation package. The ones that run every day or hour are easy: I can just create a symlink from /etc/cron.daily
to my script.
我需要用我的Ubuntu安装包安装一些cron作业。每天或每小时运行的都很简单:我可以创建一个从/etc/cron.daily到我的脚本的符号链接。
However, I also have a script that I would like to run every 10 minutes. There is no such thing as /etc/cron.minutely
. Also I am not sure how to edit crontab without using the interactive editor (crontab -e
). What is the best way to go about this?
但是,我还有一个脚本,我想每10分钟运行一次。没有/etc/cron.minutely这样的东西。另外,我不知道如何在不使用交互式编辑器(crontab -e)的情况下编辑crontab。最好的方法是什么?
1 个解决方案