Hi there.
I ran:
Code:
find /path/to/inbounddata/data/* -depth -type d ! -name data
It returned:
Quote:
|
/path/to/inbounddata/data/2009-03-17
|
Which is correct, as there is only 1 folder right now.
Quote:
|
If it returns a whole lot of files, redirect the output to a file.
|
What do you mean by "redirect the output to a file", what does this do and what benefit does this have?
EDIT/UPDATE.
It appears there is an error with my delete.sh file
Code:
# It only works if I set the ctime to 0
find /path/to/inbounddata/data/* -depth -type d ! -name data -ctime 24 -exec /bin/rm -Rf "{}" \;
Quote:
# I always get this output if I set the ctime to anything but 0.
find: missing argument to `-exec'
|
Is there another way to resolve this problem?
Last edited by worchyld; 03-18-2009 at 08:50 AM..
|