LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

sattach

Attach to a running Slurm job step

TLDR

Attach to a job step
$ sattach jobid.stepid
copy
Attach with input filter for specific task
$ sattach --input-filter 0 jobid.stepid
copy
Attach with output filter for specific task
$ sattach --output-filter 0 jobid.stepid
copy
Attach with error filter for specific task
$ sattach --error-filter 0 jobid.stepid
copy

SYNOPSIS

sattach [options] jobid.stepid

DESCRIPTION

sattach attaches to a Slurm job step's input/output streams, allowing you to interact with a running job. It redirects the stdout, stderr, and stdin of a Slurm job step to the current terminal.

PARAMETERS

jobid.stepid

The job ID and step ID to attach to (format: jobid.stepid)
--input-filter TASK
Use the current console's input as stdin to the specified task
--output-filter TASK
Only redirect stdout of the specified task
--error-filter TASK
Only redirect stderr of the specified task
-l, --label
Prepend task number to lines of output
-Q, --quiet
Suppress informational messages
-v, --verbose
Increase verbosity of messages
--pty
Execute task zero in pseudo terminal. Not compatible with filter options
--layout
Print task layout information and exit without attaching
-V, --version
Display Slurm version number and exit

INSTALL

sudo apt install slurm-client
copy

CAVEATS

Only the job owner can attach to a job step. The job must be in a running state. Not all MPI implementations support attachment.

HISTORY

sattach is part of the Slurm workload manager, providing job scheduling and resource management for HPC clusters.

SEE ALSO

srun(1), sbatch(1), squeue(1), scontrol(1), scancel(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid