Changeset 1172 for TI01-discovery


Ignore:
Timestamp:
13/06/06 18:31:39 (13 years ago)
Author:
selatham
Message:

fixing bug in directory tidying

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/ingestAutomation/OAIBatch/oai_ingest.py

    r1126 r1172  
    140140# 
    141141#Once the pre-processing has finished remove the originals from the discovery directory: 
    142 commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/oai* | xargs -i rm /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/{\}" 
     142commandline = "find /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/oai* -print | xargs -i rm /{\}" 
    143143print "Executing : " + commandline 
    144144status = os.system(commandline) 
     
    181181         
    182182#Clear out the original harvest records area 
    183 commandline = "ls -1 " + harvest_home + " | xargs -i rm -f " + harvest_home + "{\}" 
     183commandline = "ls -1 " + harvest_home + " | xargs -i rm " + harvest_home + "/{\}" 
    184184print "Executing : " + commandline 
    185185status = os.system(commandline) 
Note: See TracChangeset for help on using the changeset viewer.