Hi Slurm Community,
I'm starting to experiment with slurmrestd for a new app we're writing. I'm having trouble understanding one aspect of submitting jobs.
When I run something like `srun -n 10 echo HELLO', I get HELLO returned to my console/stdout 10x. When I submit this command as a script to the /jobs/submit route, I get success/200, but *I cannot determine how to get the console output of HELLO 10x in any form*. It's not in my stdout log for that job even though I can verify that the job ran successfully.
Any suggestions?
If you submit the command as a script, the output and the error stream end up in files, because you may logout, or have gazillion of other things or other reasons, and therefore the stream to tty/console does not make sense anymore
On Mon, Mar 24, 2025 at 8:29 AM Dan Healy via slurm-users < slurm-users@lists.schedmd.com> wrote:
Hi Slurm Community,
I'm starting to experiment with slurmrestd for a new app we're writing. I'm having trouble understanding one aspect of submitting jobs.
When I run something like `srun -n 10 echo HELLO', I get HELLO returned to my console/stdout 10x. When I submit this command as a script to the /jobs/submit route, I get success/200, but *I cannot determine how to get the console output of HELLO 10x in any form*. It's not in my stdout log for that job even though I can verify that the job ran successfully.
Any suggestions?
-- Thanks,
Daniel Healy
-- slurm-users mailing list -- slurm-users@lists.schedmd.com To unsubscribe send an email to slurm-users-leave@lists.schedmd.com
When I run something like `srun -n 10 echo HELLO', I get HELLO returned to my console/stdout 10x. When I submit this command as a script to the /jobs/submit route, I get success/200, but I cannot determine how to get the console output of HELLO 10x in any form. It's not in my stdout log for that job even though I can verify that the job ran successfully.
You're saying there's no output in the StdOut or StdErr files listed by `scontrol show job JOBID` for the job?
If instead it's that you're wondering why it only contains one "HELLO" instead instead of ten, then my question would be whether you're doing an `srun echo HELLO` within the job script or if it ends up being just a single echo in the .batch step.