ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/Processing/bin/move
(Generate patch)

Comparing UserCode/MitProd/Processing/bin/move (file contents):
Revision 1.3 by paus, Tue Oct 5 16:06:48 2010 UTC vs.
Revision 1.5 by paus, Sun Dec 5 01:01:21 2010 UTC

# Line 22 | Line 22 | def clean(file):
22   def exists(target):
23      if   re.search('/castor/cern.ch/',target):
24          debugPrint(' Identified a castor directory: ' + target)
25 <        cmd = 'rfdir ' + target + '\>\& /dev/null'
25 >        cmd = 'rfdir ' + target
26      elif re.search('/pnfs/cmsaf.mit.edu/',target):
27          debugPrint(' Identified a tier-2 directory: ' + target)
28          cmd = 'ssh paus@cgate.mit.edu ls -1 ' + target + '\>\& /dev/null'
29      else:
30          debugPrint(' Identified a normal directory: ' + target)
31 <        cmd = 'ls -1 ' + target + '\>\& /dev/null'
31 >        cmd = 'ls -1 ' + target + '>& /dev/null'
32              
33      status = os.system(cmd)
34      debugPrint(' Status: %d' % status)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines