non-recursively find files older than 1 minute within my home directory and update their timestamp
* * * * * /usr/bin/find /home/me/ \( ! -name . -prune \) \( -type f -mmin +1 -name "*" \) -exec /usr/bin/touch {} \;
it runs like a charm from shell but not as a cronjob.
i've tried this modification:
* * * * * /usr/bin/find /home/me/ \( ! -name . -prune \) \( -type f -mmin +1 -name "*" \) -exec /usr/bin/touch {} \\;
and this one:
* * * * * /usr/bin/find /home/me/ \( ! -name . -prune \) \( -type f -mmin +1 -name "*" \) -exec /usr/bin/touch -- {} \;
still no joy.
avoiding a wrapper - a script to call this find command.
any ideas and pointers on how to make the cronjob work are appreciated. thank you.