The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 03-17-2009
worchyld worchyld is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 27
Quote:
Does delete.sh invoke directorynal.sh? To me, it seems like delete.sh is being called correctly.
I don't think so... I didn't even know you could invoke directorynal.sh? There's nothing in my delete.sh file that suggests this.

But then why does it complain that it can't find the file/directory/contents, even if it exists?

Delete.sh does this;


Code:
find /path/to/inbounddata/data/* -depth -type d ! -name data -ctime 24 -exec /bin/rm -Rf "{}" \;

If I try to write everything in this file, or put anything after the \; it complains that I did not use -exec properly.

I can't even use a "echo 'done'" in this file, so this is part of the reason why I've seperated them all.