brooky
Occasional Visitor
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 server "cru l" returns nothing?!
Does anyone know why it's lost after reboot? The shell file exists still.
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
I then created a cron using "cru" to run at midnight:
Code:
cru a cctv "0 0 * * * /jffs/scripts/cctv.sh"
If I then run "cru l" to list cron jobs I see:
Code:
0 0 * * * /jffs/scripts/cctv.sh #cctv#
However after I reboot the server "cru l" returns nothing?!
Does anyone know why it's lost after reboot? The shell file exists still.