This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Manuel, > It seems that 'scour' is not cleaning sub-directories on our system. > > This is the relevant lines in scour.conf: > # Directory Days-old Optional-filename-pattern > > /vol/data01/ldm/sent 2 > > > We call scour regularly. This is the relevant crontab line: > 0 1,4,7,10,13,16,19,22 * * * bin/ldmadmin scour > /dev/null > > > I just have run scour manually, and this is the output: > ldm@tigge-ldm:~> ~/bin/scour -v /usr/local/ldm/etc/scour.conf > Starting Up > skipping, no recent files in /vol/data01/ldm/sent/* > exiting ... > > > But if I list the contents of that directory, there are sub-directories > older than 2 days. I'd like to see these sub-directories removed > because, although they are empty, their i-nodes are huge as they have > hold thousands of files: > ldm@tigge-ldm:~> ls -al /vol/data01/ldm/sent/ > total 82792 > drwxr-xr-x 10 ldm ldm 4096 2006-05-02 22:55 . > drwxr-xr-x 9 ldm ldm 4096 2006-04-04 14:35 .. > drwxr-xr-x 2 ldm ldm 10584064 2006-04-30 13:03 200604281200 > drwxr-xr-x 2 ldm ldm 10579968 2006-05-01 01:06 200604290000 > drwxr-xr-x 2 ldm ldm 10575872 2006-05-01 13:02 200604291200 > drwxr-xr-x 2 ldm ldm 10579968 2006-05-02 01:02 200604300000 > drwxr-xr-x 2 ldm ldm 10575872 2006-05-03 01:02 200604301200 > drwxr-xr-x 2 ldm ldm 10584064 2006-05-01 22:02 200605010000 > drwxr-xr-x 2 ldm ldm 10579968 2006-05-02 11:25 200605011200 > drwxr-xr-x 2 ldm ldm 10579968 2006-05-02 22:55 200605020000 > -rw-r--r-- 1 ldm ldm 0 2006-05-03 01:02 .scour* > > > Could you, please, tell us if we are doing something wrong ? You're not doing anything wrong. The scour(1) utility wasn't designed to remove directories -- only regular files. Steve Chiswell has a utility that removes directories as well as regular files. I sent him a copy of this reply. Regards, Steve Emmerson Ticket Details =================== Ticket ID: BXZ-922182 Department: Support IDD TIGGE Priority: Normal Status: Closed