Re: Command not running in crontab

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



Hi,

It works from the command line? that's kind of surprising. It may work
via tab completion in the shell, but will not work with that as typed.
You'd suffer from shell expansion.


# clean up postmaster
00 30 * * * root /usr/bin/find
/var/qmail/maildirs/postmaster@xxxxxxxxx/Maildir/new -type f -print0 |
xargs -0 -n 50 rm
Of course that in the command shell i only run:
$ /usr/bin/find /var/qmail/maildirs/postmaster@xxxxxxxxx/Maildir/new -type f -print0 | xargs -0 -n 50 rm

Warm Regards,
Mário Gamito
_______________________________________________
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