pyiron / FAQs

General question board for pyiron users
3 stars 0 forks source link

Helpful SLURM commands #40

Open aageo25 opened 6 months ago

aageo25 commented 6 months ago

A prettier queue command:

squeue -u $USER -o '%.20i| %.35j| %.4C| %.4D| %.2t| %.20S| %.10M| %.10L'

aageo25 commented 6 months ago

Bash cdjob function. You give the JOBID and lands where you submit the job to the queue:

 function cdjob() {
     workdir="$(sacct -j $1 -o WorkDir%-200 -n | xargs)"
     cd "$workdir"
skatnagallu commented 6 months ago

For people like me, who are not so familiar with the command line or Linux. see this

jan-janssen commented 6 months ago

A prettier queue command:

squeue -u $USER -o '%.20i| %.35j| %.4C| %.4D| %.2t| %.20S| %.10M| %.10L'

Yes, that is very similar to the command we use in the pysqa package: https://github.com/pyiron/pysqa/blob/main/pysqa/wrapper/slurm.py#L32C17-L32C72