Hi All,
I have written a shell script to delete all files on a USB drive older than 14 days. I have an IP camera recording to the a USB drive on the router and I want a 14 day retention. The script can be found at:
I then created a cron using "cru" to run at midnight:
If I then run "cru l" to list cron jobs I see:
However after I reboot the...
cronjob gone after reboot using cru
I have written a shell script to delete all files on a USB drive older than 14 days. I have an IP camera recording to the a USB drive on the router and I want a 14 day retention. The script can be found at:
Code:
/jffs/scripts/cctv.sh
Code:
cru a cctv "0 0 * * * /jffs/scripts/cctv.sh"
Code:
0 0 * * * /jffs/scripts/cctv.sh #cctv#
cronjob gone after reboot using cru