I have a cron-job, which is just a script, clearing directories, which accumulate files over time. Unfortunately, it is not firing. Any idea why. I have created the cron-job using cronmaker.com.How do I know it was not fired, because it is set to fire every night, yet there are old files in it.output of crontab -e 0 0 3 1/1 * ? * ./home/deploy/scripts/clearzip.shThank you for your help. Script contents :#!/bin/bashrm -rf /media/attachment/zip/*.*rm -rf /home/deploy/excel/*.*rm -rf /home/deploy/pdf/*.*
Debian : Cron job not firing
bash;debian;cron
CronMaker uses Quartz cron triggers, which add a couple of non-standard fields (for seconds and years). You should drop the first and last fields for standard cron, use * instead of ?, and remove the leading . from your command:0 3 1/1 * * /home/deploy/scripts/clearzip.shwill run every day at 3am. More idiomatically,0 3 * * * /home/deploy/scripts/clearzip.sh