ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/SchedulerSge.py
(Generate patch)

Comparing COMP/CRAB/python/SchedulerSge.py (file contents):
Revision 1.1 by slacapra, Mon May 26 13:09:57 2008 UTC vs.
Revision 1.2 by spiga, Wed Jun 11 10:03:07 2008 UTC

# Line 70 | Line 70 | class SchedulerSge(SchedulerLocal) :
70          txt += '#\n\n'
71  
72          txt += 'func_exit() { \n'
73 <        txt += '    if [ $PYTHONPATH ]; then \n'
74 <        txt += '        update_fjr\n'
75 <        txt += '    fi\n'
76 <        txt += '    cd $RUNTIME_AREA  \n'
77 <        txt += '    cp ${SGE_STDOUT_PATH} CMSSW_${NJob}.stdout \n'
78 <        txt += '    cp ${SGE_STDERR_PATH} CMSSW_${NJob}.stderr \n'        
79 <        txt += '    for file in $filesToCheck ; do\n'
80 <        txt += '        if [ -e $file ]; then\n'
81 <        txt += '            echo "tarring file $file in  $out_files"\n'
82 <        txt += '        else\n'
83 <        txt += '            echo "WARNING: output file $file not found!"\n'
84 <        txt += '        fi\n'
85 <        txt += '    done\n'
86 <        txt += '    echo "JOB_EXIT_STATUS = $job_exit_code"\n'
87 <        txt += '    echo "JobExitCode=$job_exit_code" >> $RUNTIME_AREA/$repo\n'
88 <        txt += '    dumpStatus $RUNTIME_AREA/$repo\n'
73 >        txt += self.wsExitFunc_common()
74 >
75          txt += '    cp ${SGE_STDOUT_PATH} CMSSW_${NJob}.stdout \n'
76          txt += '    cp ${SGE_STDERR_PATH} CMSSW_${NJob}.stderr \n'        
77          txt += '    tar zcvf ${out_files}.tgz  ${filesToCheck}\n'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines