rrun-ssh 0.3.0

Remote run utility; runs a command via SSH if the current directory was mounted via SSHFS.
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate rrun_ssh;
use std::os::unix::prelude::CommandExt;
use rrun_ssh::*;

fn main() {
    let mounts = RemoteMounts::load().expect("unable to load mtab");
    let location = mounts.into_current_dir().expect("failed to get current directory");
    if let Ok(args) = location.into_env_args() {
        println!("ERROR ON EXEC: {}", args.into_command().exec());
    }
}