In my crontab file I have two entries
在我的crontab文件中,我有两个条目
00 13 * * * DISPLAY=:0.0 /home/noob/.scripts/backup.sh
00 21 * * * DISPLAY=:0.0 /home/noob/.scripts/backup.sh
Now can I write a single entry which executes the backup.sh
file @ 1:00PM and 9:00PM.
现在,我可以编写一个条目,在下午1:00和晚上9:00执行backup.sh文件。
1 个解决方案
#1
1
00 13,21 * * * DISPLAY=:0.0 /home/noob/.scripts/backup.sh
#1
1
00 13,21 * * * DISPLAY=:0.0 /home/noob/.scripts/backup.sh