Linux command
sattach 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Attach
sattach jobid.stepid
Example
sattach --input-filter 0 jobid.stepid
Example
sattach --output-filter 0 jobid.stepid
Example
sattach --error-filter 0 jobid.stepid
说明
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.
参数
- 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
FAQ
What is the sattach command used for?
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.
How do I run a basic sattach example?
Run `sattach jobid.stepid` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does jobid.stepid do in sattach?
The job ID and step ID to attach to (format: jobid.stepid)