# Naming output files from processes spawned using addprocs\_slurm on a cluster

**URL:** <https://discourse.julialang.org/t/naming-output-files-from-processes-spawned-using-addprocs-slurm-on-a-cluster/39174>\
**Category:** Julia at Scale\
**Tags:** question\
**Created:** [May 9, 2020, 10:43am UTC](https://discourse.julialang.org/t/naming-output-files-from-processes-spawned-using-addprocs-slurm-on-a-cluster/39174 "2020-05-09T10:43:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HarrisonWilde](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@HarrisonWilde](https://discourse.julialang.org/u/HarrisonWilde)\
**Post date:** [May 9, 2020, 10:43am UTC](https://discourse.julialang.org/t/naming-output-files-from-processes-spawned-using-addprocs-slurm-on-a-cluster/39174/1 "2020-05-09T10:43:39Z")

</div>

Hi, I am running some distributed code using `ClusterManagers.jl`’s `addprocs_slurm` command to spawn processes after submitting an sbatch script on our cluster’s login node. I can happily rename the output file for the “head” process and even capture error logs, however, I cannot figure out how to determine the naming pattern of the spawned processes output files, they all appear as job0001.out, job0002.out etc. and I’d like to be able to change this if possible so I can run two large experiments at once without them overwriting each other.

---

<div class="post-metadata">

**Author:** ![jishnub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jishnub/32/33620_2.png) [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Post date:** [May 12, 2020, 2:14pm UTC](https://discourse.julialang.org/t/naming-output-files-from-processes-spawned-using-addprocs-slurm-on-a-cluster/39174/2 "2020-05-12T14:14:00Z")

</div>

Are you using the master branch? I think now it also uses the task id in the file names, so you may run multiple tasks at once
