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.
19 lines
694 B
19 lines
694 B
#!/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
|
|
|