klone_run
Execute a shell command on the klone HPC cluster and return its standard output. Supports pipes, redirects, and command chaining for job submission, inspection, and disk queries.
Instructions
Run a shell command on klone and return its stdout.
cmd is run by the remote shell, so pipes, redirects, and && chains
work. For everything beyond simple commands — SLURM job submission,
job inspection, log tailing, disk queries, etc. — invoke the
appropriate shell tool here. See klone://docs/commands for a list
of klone-specific utilities (hyakalloc, hyakstorage, squeue, sacct,
sbatch, scontrol, scancel, sinfo, apptainer, ...).
For long-running work (compilation, training), submit a SLURM job
via sbatch rather than running it directly.
timeout (seconds) controls how long to wait for the remote command.
Default 60. Bump for expensive queries like du -sh /gscratch/....
First-time orientation: if you haven't already, read
klone://docs/quickstart — it covers the storage/quota layout, the
SSD-staging performance pattern, and indexes all other klone://help/*
topics (SLURM, GPUs, containers, MATLAB, R, Jupyter, etc). Reading it
once saves repeated trial-and-error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmd | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |