To debug shell scripts try running with the -x flag ???

On Thu, Jan 9, 2025, 10:51 AM Gérard Henry (AMU) via slurm-users <slurm-users@lists.schedmd.com> wrote:
Hello all and happy new year,

i have installed slurm 21.08 on ubuntu 22 LTS, and database for
accounting on a remote machine running same release.
I got seff from:
https://support.schedmd.com/show_bug.cgi?id=1611

but, there are errors:
Use of uninitialized value $ncpus in numeric eq (==) at /usr/bin/seff
line 72, <DATA> line 602.
Use of uninitialized value $lmem in numeric lt (<) at /usr/bin/seff line
109, <DATA> line 602.
Job ID: 14
Cluster: cathena2
Use of uninitialized value $user in concatenation (.) or string at
/usr/bin/seff line 126, <DATA> line 602.


does anyone have a more recent version?
i try to enable debug uncommenting the line:
60c60
< #print Dumper($job);
---
 > print Dumper($job);

but it's strange, because if you run the seff command several times in a
row, the dump result is very different, even though the job has been
completed. It doesn't change the most important values, but how is it
possible not to have the same output?

Thanks in advance for help,

--
Gérard HENRY
Institut Fresnel - UMR 7249
+33 413945457
Aix-Marseille Université - Campus Etoile, BATIMENT FRESNEL, Avenue
Escadrille Normandie Niemen, 13013 Marseille
Site : https://fresnel.fr/
Afin de respecter l'environnement, merci de n'imprimer cet email que si
nécessaire.
--
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-leave@lists.schedmd.com