0

I want to print the following variables to the standard output file slurm-XXXXX.out produced by Slurm. Right now, I am generating a separate .info file for every job.

echo "SLURM Job ID        : ${SLURM_JOB_ID}" >> $SLURM_SUBMIT_DIR/$jobName.$JOBID.info
echo "SLURM Job name      : ${SLURM_JOB_NAME}" >> $SLURM_SUBMIT_DIR/$jobName.$JOBID.info
echo "SLURM Node list     : ${SLURM_JOB_NODELIST}" >> $SLURM_SUBMIT_DIR/$jobName.$JOBID.info

Thanks.

1 Answer 1

1

Just echoing these variables without the redirection to your info file will output to .out file, like

echo "SLURM Job ID        : ${SLURM_JOB_ID}"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.