From ba1abe3782aa5573b82ddf642dfae9d5695a10d5 Mon Sep 17 00:00:00 2001 From: Tony Kew Date: Thu, 19 Sep 2024 15:48:05 -0400 Subject: [PATCH] Use "id -un" for the username rather than the LOGNAME variable ${LOGNAME} may not be set, or may be changed, whereas $(id -un) will always return the username Tony --- slurm/2_ApplicationSpecific/VASP-GPU-podman/run_vasp.bash | 2 +- slurm/2_ApplicationSpecific/VASP-GPU-podman/run_vasp_shell.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/slurm/2_ApplicationSpecific/VASP-GPU-podman/run_vasp.bash b/slurm/2_ApplicationSpecific/VASP-GPU-podman/run_vasp.bash index 8722a15..8ae9704 100755 --- a/slurm/2_ApplicationSpecific/VASP-GPU-podman/run_vasp.bash +++ b/slurm/2_ApplicationSpecific/VASP-GPU-podman/run_vasp.bash @@ -38,7 +38,7 @@ then then SLURM_JOB_USER="${PARENT_USER}" else - SLURM_JOB_USER="${LOGNAME}" + SLURM_JOB_USER="$(id -un)" fi fi diff --git a/slurm/2_ApplicationSpecific/VASP-GPU-podman/run_vasp_shell.bash b/slurm/2_ApplicationSpecific/VASP-GPU-podman/run_vasp_shell.bash index 64d13e8..9d11efd 100755 --- a/slurm/2_ApplicationSpecific/VASP-GPU-podman/run_vasp_shell.bash +++ b/slurm/2_ApplicationSpecific/VASP-GPU-podman/run_vasp_shell.bash @@ -38,7 +38,7 @@ then then SLURM_JOB_USER="${PARENT_USER}" else - SLURM_JOB_USER="${LOGNAME}" + SLURM_JOB_USER="$(id -un)" fi fi