From: rvaede on
On Jul 1, 10:21 am, John Kelly <j...(a)isp2dial.com> wrote:
> On Thu, 01 Jul 2010 14:54:50 +0100, Ben Bacarisse <ben.use...(a)bsb.me.uk>
> wrote:
>
> >rvaede <rvaede...(a)gmail.com> writes:
>
> >> I put this command in crontab I wanted to delete all the files in the
> >> subdirectories its not doing that:
>
> >> /bin/find /archive/backup/fixed -mtime +10 -exec rm -rf {} \; > /dev/
> >> null 2>&1
> >(3) Does your cron see the \ as an escape so find does not see it?  Try
> >';' instead of \;.
>
> Yes cron can be picky.  I tend to put my commands in a shell script and
> run the script from cron.
>
> > test -x /usr/local/sbin/myscript && { /usr/local/sbin/myscript || echo "myscript rc=$?"; }
>
> --
> Web mail, POP3, and SMTPhttp://www.beewyz.com/freeaccounts.php

Thank you for assistance.

I added -type f to the cron job and that removed only files from the
directory. That fixed the problem.

regards
Roger