...
Code Block |
---|
$ cat job-script.sh #!/bin/sh # run in LSF queue atlas-t3 and run up to 120 minutes (wall time) #BSUB -q atlas-t3 #BSUB -W 120 #BSUB -R "select[rhel60 && cvmfs && inet] rusage[scratch=5.0, mem=1000:decay=0]" # create a unique working directory on batch node's /scratch space myworkdir="/scratch/`name -n`$$" mkdir $myworkdir cd $myworkdir # run payload task1 < input_of_task1 > output_of_task1 2>&1 & task2 < input_of_task2 > output_of_task2 2>&1 & wait # wait for the tasks to finish # save the output to storage, use either "cp" to copy to NFS spaces, or "xrdcp" to copy to the xrootd spaces cp myoutput_file /nfs/slac/g/atlas/u02/myoutput_file xrdcp myoutput_file root://atlprf01:11094//atlas/local/myoutput_file # clean up cd ../scratch rm -rf $myworkdir $ bsub < job-script.sh # submit the job |
...