Skip to content
Snippets Groups Projects

Refactoring run-mmpol scripts

1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
@@ -127,12 +127,17 @@ if [[ ! ${dry_run} ]]; then
@@ -127,12 +127,17 @@ if [[ ! ${dry_run} ]]; then
log_dir="${outdir}/${log_name}.d"
log_dir="${outdir}/${log_name}.d"
mkdir ${log_dir}
mkdir ${log_dir}
 
chmod 1770 ${log_dir}
# tag output file with run metadata
# tag output file with run metadata
raw_log_file=$(find ${outdir} -maxdepth 1 -name "list-${SLURM_JOBID}*" -type f | head -1)
raw_log_file=$(find ${outdir} -maxdepth 1 -name "list-${SLURM_JOBID}*" -type f | head -1)
if [[ "$raw_log_file" != "" ]]; then
if [[ "$raw_log_file" != "" ]]; then
mv -n ${raw_log_file} ${log_dir}/${log_name}
mv -n ${raw_log_file} ${log_dir}/${log_name}
 
chmod 550 ${log_dir}/${log_name}
 
gzip ${log_dir}/${log_name}
fi
fi
 
 
chown -R ${USER}:atlab ${log_dir}
rmdir ${tmpglobal}
rmdir ${tmpglobal}
fi
fi
Loading