Hi guys,
Working on a 8.1-PRERELEASE and having problems with 1 find cmd:
The idea of the script is that if there are files older that 10 min, a rsync is started, else the script just exists. It will be run from crontab every 10 min.
The problem is that if I create a file in that dir, the find cmd will not discover it. I;ve been hitting my head against the wall since yesterday and I also tried -atime, -mtime, with several combinations of days, hours, minutes but couldn't find a proper option to use.
Can anyone lend a hand here ?
Working on a 8.1-PRERELEASE and having problems with 1 find cmd:
Code:
find /path/ro/folder -type d -depth 1 -mmin -10
The idea of the script is that if there are files older that 10 min, a rsync is started, else the script just exists. It will be run from crontab every 10 min.
The problem is that if I create a file in that dir, the find cmd will not discover it. I;ve been hitting my head against the wall since yesterday and I also tried -atime, -mtime, with several combinations of days, hours, minutes but couldn't find a proper option to use.
Can anyone lend a hand here ?