Repository to share code among the members of the SHM Working Group.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#!/bin/bash
############################################################ # Script to get jobname for each crashed job # # If jobname contains event number => get crashed events # # # # argument $1 - list of failed hydro jobs # # you can get that by running 'bash makelist.sh' # ############################################################
if [[ -f "crashed_jobs.txt" ]]; then ## delete previous list rm crashed_jobs.txt fi
for item in `cat $1` ## loop over crashed job IDs do #echo $item sacct -j $item --format=Jobname >> crashed_jobs.txt ## gets a jobname for each job done
|