SkillAgentSearch skills...

Asyncssh

SSH and run commands on other servers asynchronously for Nim.

Install / Use

/learn @treeform/Asyncssh
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

AsyncSSH

SSH and run commands on other servers asynchronously. This is great if you have a cluster of servers and want to run commands on the at the same time. Waiting for their results.

Example:

If you just want to run a command and see its output:

var (output, code) = await execSSHCmd("root", "127.0.0.1", "uptime")
echo output
echo code

If you want to start a process which can be killed:

var p2 = newAsyncSSHProcess("root", "127.0.0.1", "uptime")
await p2.exec()
echo p2.output
echo p2.exitCode
echo p2.exitSignal

Related Skills

View on GitHub
GitHub Stars25
CategoryDevelopment
Updated2y ago
Forks1

Languages

Nim

Security Score

60/100

Audited on Jan 7, 2024

No findings