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.
在我的 crontab 文件中,我有两个条目
00 13 * * * DISPLAY=:0.0 /home/noob/.scripts/backup.sh 00 21 * * * DISPLAY=:0.0 /home/noob/.scripts/backup.sh
现在我可以编写一个在backup.sh下午 1:00 和晚上 9:00 执行文件的条目。
backup.sh
00 13,21 * * * DISPLAY=:0.0 /home/noob/.scripts/backup.sh