Skip to content

Conversation

toondehaene
Copy link

resubmission of PR #460

--parsable doesn't only print the jobnumber on HPC Leuven

see https://slurm.schedmd.com/sbatch.html#OPT_parsable

Fixed text and command

resubmission of PR hpcleuven#460



--parsable doesn't only print the jobnumber on HPC Leuven

see https://slurm.schedmd.com/sbatch.html#OPT_parsable

Fixed text and command
To make ``sbatch`` print simply the job ID after submitting, use the ``--parsable`` option.
To make ``sbatch`` print the job ID after submitting, use the ``--parsable`` option.

- In some clusters, the ``--parsable`` option also prints the cluster name in the form "<job ID>;<cluster>". We can use cut to fetch just the job ID.
Copy link
Collaborator

@lexming lexming Apr 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestion to make it more clear:

Suggested change
- In some clusters, the ``--parsable`` option also prints the cluster name in the form "<job ID>;<cluster>". We can use cut to fetch just the job ID.
.. note::
In some clusters the ``--parsable`` option also prints the cluster name with the job
ID in the form ``<job ID>;<cluster>``. We can use the command ``cut`` to fetch just
the job ID as shown below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants