pub fn exec(cmd: &str, output: bool) -> Result<String>