[CentOS] Find files

2008-02-22 Thread centos
Hi, I am trying to delete files that are more than 7 days old. When I run it interactively it works, no problem, but it does not run from a file stored in cron.daily. The rest of that daily file runs properly. [The execute bit is on]. I don't see anything in the /var/log/messages.

Re: [CentOS] Find files

2008-02-22 Thread Garrick Staples
On Fri, Feb 22, 2008 at 01:40:11PM -0800, [EMAIL PROTECTED] alleged: Hi, I am trying to delete files that are more than 7 days old. When I run it interactively it works, no problem, but it does not run from a file stored in cron.daily. The rest of that daily file runs properly. [The

Re: [CentOS] Find files

2008-02-22 Thread Robert
[EMAIL PROTECTED] wrote: Hi, I am trying to delete files that are more than 7 days old. When I run it interactively it works, no problem, but it does not run from a file stored in cron.daily. The rest of that daily file runs properly. [The execute bit is on]. I don't see anything in the

Re: [CentOS] Find files

2008-02-22 Thread Matt Shields
On Fri, Feb 22, 2008 at 9:16 PM, Robert [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hi, I am trying to delete files that are more than 7 days old. When I run it interactively it works, no problem, but it does not run from a file stored in cron.daily. The rest of that daily

Re: [CentOS] Find files

2008-02-22 Thread Steve Searle
Around 02:42am on Saturday, February 23, 2008 (UK time), Matt Shields scrawled: You can also do it like this /usr/bin/find /mnt/iog -type f -name '*.tar.gz' -mtime +7 -print -exec rm -f {} \; man tmpwatch Steve -- A: Because it messes up the order in which people normally read text. Q: