Remote run utility; runs a command via SSH if the current directory was mounted via SSHFS. You may freely use and modify this code under the CC0 1.0 Universal License.
Run command remotely:
bash
rrun [COMMAND [ARGS...]]
Get currently mounted host and directory:
bash
rpwd
For more formal documentation, you can find the rustdoc here.
Requires Rust 1.9 to build. Install with:
bash
cargo build --release
install -m755 target/release/rrun /usr/bin/rrun
install -m755 target/release/rpwd /usr/bin/rpwd