Skip to content

Commit 6b51688

Browse files
committed
redirect stderr to stdout for daemon SLURM jobs
1 parent 58bb3ad commit 6b51688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jobqueues/templates/SLURM_job.sh.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ echo "start_server -uid ${UID}" | nvidia-cuda-mps-control
6969

7070
{% for rsh in runsh %}
7171
cd {{ rsh[0] }}
72-
{{ rsh[1] }} {% if run_as_daemon %} | tee log_{{loop.index}}.txt &{% endif %}
72+
{{ rsh[1] }} {% if run_as_daemon %} 2>&1 | tee log_{{loop.index}}.txt &{% endif %}
7373

7474
{% endfor %}
7575
{% if runsh|length > 1 %}

0 commit comments

Comments
 (0)