Skip to content
Snippets Groups Projects
Commit f6de9fd7 authored by Mathis Rosenhauer's avatar Mathis Rosenhauer
Browse files

Escaping and cleanup

parent b90c3a8c
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ clean_up () {
if [[ -n ${job_id:-} ]]; then
echo "Removing job ${job_id}."
ssh_frontend "scancel -Q ${job_id}; sleep 1; \
cd .startvnc && rm -f out.${job_id}"
cd .startvnc && rm -f out.${job_id} nodelist_${job_id}.txt"
else
echo "Job ID not available. Make sure the vncjob is not running!"
ssh_frontend "squeue -u ${SVNC_USERNAME}"
......@@ -225,7 +225,7 @@ ${sbatch_resources}
#SBATCH --dkrzepilog=0
cd \${HOME}
scontrol show hostname \${SLURM_JOB_NODELIST} | \
awk '{print $0":00";print $0":01";print$0":02";print $0":03"}' > \
awk '{print \$0":0";print \$0":1";print \$0":2";print \$0":3"}' > \
.startvnc/nodelist_\${SLURM_JOB_ID}.txt
/opt/TurboVNC/bin/vncserver -fg -geometry "${SVNC_GEOMETRY}" -localhost
EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment