#process #command #exit-status #stdout #stderr #stdin #ssh

russh-process

A library for running a command on a remote server via SSH

1 unstable release

0.1.0 Nov 30, 2024

#4 in #exit-status

Download history 106/week @ 2024-11-24 121/week @ 2024-12-01

227 downloads per month

MIT license

18KB
255 lines

Russh Process Command

This crate provides an interface similar to std::process::Command for russh library. It allows executing commands, streaming their output, and retrieving their exit status.

Features

  • Mimics the std::process::Command API.
  • Provides asynchronous stdin, stdout, and stderr streams.
  • Supports retrieving the command's ExitStatus.
  • Provides spawn and output methods for more control over process handling.

Example

Dependencies

~15–45MB
~715K SLoC