Re: Command not running in crontab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Mario:

Can anoyone tell me why this command is not executed (or it is without success) from crontab, but works perfectly from the command line ?
(yes, i've restarted crontab service)

# clean up postmaster
00 30 * * * root /usr/bin/find /var/qmail/maildirs/ postmaster@xxxxxxxxx/Maildir/new -type f -print0 | xargs -0 -n 50 rm

If that is the actual crontab entry, then it is not valid, as the second column is the hour (there is no hour 30). You probably want this:

30 00 * * * root /usr/bin/find /var/qmail/maildirs/ postmaster@xxxxxxxxx/Maildir/new -type f -print0 | xargs -0 -n 50 rm

Alfred

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux