SLURM command line tools and scripts
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This repository provides some command-line tools and some job-script for the SLURM queuing system.

Command-line tools

  • Gstat: wrapper around squeue.
  • Ginfo: wrapper around sinfo.
  • Gdel: delete some or all of the user's jobs.
  • Gscript: automatically write a job-script. The customizable part that involves running the job is provided as an option.
  • Gsub: submit a job from the folder of the job-script (essential for jobs that use a temporary directory).

Batch scripts

  • tempdir: Exploit a temporary directory on the compute node to avoid costly read/write actions of the network.

    1. Copy files to a temporary directory on the compute node
    2. Run the job (while reading and writing locally on the compute node)
    3. Copy all files back to the directory from which the job is submitted.
  • json_log: Register some environment variables when the job starts. This particular examples shows a way to allow automatic copying from the tempdir back to the head node using Gcopy while the job is running.

  • parallel: Use GNU parallel to run several executables in parallel within a single job (that claims more that one CPU).


To download the script you could use git.

  1. Login to the cluster:

    $ ssh
  2. Clone this repository:

    $ cd /some/path
    $ git clone

GooseSLURM will then be downloaded to /some/path/GooseSLURM.


To get these scripts to work one can:

  • Point the $PATH to the bin/ folder of this directory, for example by adding the following line to the ~/.bashrc:

    export PATH=/path/to/GooseSLURM/bin:$PATH
  • 'Install' the script in your home folder:

    1. Create a directory to store libraries in the home folder. For example:

      mkdir ~/opt
    2. 'Install' the GooseSLURM's scripts. For example

      cd /path/to/GooseSLURM
      mkdir build
      cd build
      make install
    3. Make the bin/ folder of this 'installation' directory locatable, by adding to the ~/.bashrc:

      export PATH=$HOME/opt/bin:$PATH

Note that one has to have Python3 (loaded), and the "docopt" library has to be available to Python. For example:

  • Load using

    module load gcc/7.1.0 python/3.6.1

    Or something equivalent. Note that none of the feature should be very version dependent.

  • Install "docopt" using

    pip3 install --user docopt

    The --user option is only needed if you want to install the library to your own home-folder. On 'normal' systems this is typically not what you want to do, but it assumed here that you are doing this on a cluster where everything is shared.