[slurm-users] How can I get complete field values with without specify the length

Ole Holm Nielsen Ole.H.Nielsen at fysik.dtu.dk
Tue Mar 9 06:56:23 UTC 2021


On 3/9/21 5:06 AM, xiaojinghu93 at 163.com wrote:
> Hi, guys
> I am doing a parsing job on slurm fields. Sometimes when one field is too long, slum will limit the length with a “+”. But I prefer to get the complete value of that field. Do you know how can I achieve that? I do not want to specify the length either coz it still cannot guarantee that you get the complete string.

You did not give examples of commands that you use.  For the sacct 
command, for example, you get complete output with -p or -P:

    -p, --parsable
                  output will be '|' delimited with a '|' at the end
    -P, --parsable2
                  output will be '|' delimited without a '|' at the end

/Ole



More information about the slurm-users mailing list