Alternative to 'Find' in BusyBox
Posted: Fri Nov 20, 2015 4:19 pm
Hi, I'm trying to run a cron job that deletes webcam images uploaded to the USB storage after 4 days. I've used a command on DD-WRT and Ubuntu that has worked:
0 0 * * * * find /tmp/dev/sda1/camera *.jpg -type f -mtime +4 -exec rm {} \;
but it looks like the BusyBox version of 'Find' on Gargoyle does not have the '-mtime' argument. Can anyone suggest an alternative? Thanks
Gargoyle 1.8.1 TL-WDR3600
0 0 * * * * find /tmp/dev/sda1/camera *.jpg -type f -mtime +4 -exec rm {} \;
but it looks like the BusyBox version of 'Find' on Gargoyle does not have the '-mtime' argument. Can anyone suggest an alternative? Thanks
Gargoyle 1.8.1 TL-WDR3600