I have a bunch of cameras that upload shots via FTP when motion is detected. I've a simple script to manage those files. Generally, I want them moved on daily basis and eventually deleted. However, sometimes there are too many files and I get mail from cron with error message: /usr/bin/find: Argument list too long. The line from script is below, any ideas how to work around it?
Code:
/usr/bin/find $PDIR/front/* -mtime +1h1m -exec mv {} $PDIR/yesterday/front \;