How can I use a cronjob when another program makes the commands in the cronjob fail?
问题 I have a cron job which cd into a directory and performs actions. For example: 0 12,00 * * * cd /var/lib/test/0001 && cp *.zip /home/bobby/ However, the program that creates the .zip files in /var/lib/test/0001 changes the directory name every day. So on the second day, the directory is /var/lib/test/0002 and on the third day /var/lib/test/0003 and so on. This model cannot be changed. Of course, when the directory migrates from 0001 to 0002 , the cronjob fails. Is there a way to use cron to