Crates.io | stama |
lib.rs | stama |
version | |
source | src |
created_at | 2024-04-21 18:44:56.0561+00 |
updated_at | 2025-04-12 13:18:36.569588+00 |
description | A terminal user interface for monitoring and managing slurm jobs. |
homepage | |
repository | |
max_upload_size | |
id | 1215593 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A terminal user interface for monitoring and managing slurm jobs.
curl https://sh.rustup.rs -sSf | sh
cargo install stama
The program 'stama' should now be available in your terminal.
stama_wrapper() {
temp_file="$(mktemp -t "stama.XXXXXXXXXX")"
stama --output-file="$temp_file"
output=$(cat -- "$temp_file")
# Check if the output is "cd /some/path/"
if [[ "$output" == "cd "* ]]; then
local directory="${output#cd }" # Extract the directory path
cd "$directory"
# Check if the output is "ssh <some_address>"
elif [[ "$output" == "ssh "* ]]; then
local node="${output#ssh }" # Use the output as the SSH command
ssh -Y "$node"
else
echo "Unknown command in stama output: $output"
fi
rm -f -- "$temp_file"
}
After restarting your terminal or sourcing the config file, you can use the function 'stama_wrapper' to execute the commands output by stama.
For more infos see: notes.md
Silvano Rosenau