Skip to content
Snippets Groups Projects
Commit c8adb6bc authored by Michael Langguth's avatar Michael Langguth
Browse files

Adapt convert_runscript.sh

to set project on JSC's HPCsystems.
parent 56d01e15
No related branches found
No related tags found
No related merge requests found
Pipeline #93527 failed
...@@ -93,13 +93,14 @@ fi ...@@ -93,13 +93,14 @@ fi
if [[ `grep "#SBATCH --error=" ${target_script}` ]]; then if [[ `grep "#SBATCH --error=" ${target_script}` ]]; then
sed -i "s|#SBATCH --error=.*|#SBATCH --error=${log_str}-err\.%j|g" ${target_script} sed -i "s|#SBATCH --error=.*|#SBATCH --error=${log_str}-err\.%j|g" ${target_script}
fi fi
# set correct e-mail address in Batch scripts on Juwels and HDF-ML # set correct e-mail address (only when jutil-tool is available)
if [[ "${HOST_NAME}" == hdfml* || "${HOST_NAME}" == *juwels* ]]; then
if ! [[ -z `command -v jutil` ]]; then if ! [[ -z `command -v jutil` ]]; then
USER_EMAIL=$(jutil user show -o json | grep email | cut -f2 -d':' | cut -f1 -d',' | cut -f2 -d'"') USER_EMAIL=$(jutil user show -o json | grep email | cut -f2 -d':' | cut -f1 -d',' | cut -f2 -d'"')
else else
USER_EMAIL="" USER_EMAIL=""
fi fi
sed -i "s/--mail-user=.*/--mail-user=$USER_EMAIL/g" ${target_script} sed -i "s/--mail-user=.*/--mail-user=$USER_EMAIL/g" ${target_script}
if [[ "${HOST_NAME}" == hdfml* || "${HOST_NAME}" == *juwels* ]]; then
sed -i "s/--account=.*/--mail-user=deepacf/g" ${target_script}
fi fi
# end # end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment