Skip to content

Instantly share code, notes, and snippets.

@cuongld2
Created July 22, 2021 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cuongld2/046b70f30fe50351dbc08f72bc3b8dd8 to your computer and use it in GitHub Desktop.
Save cuongld2/046b70f30fe50351dbc08f72bc3b8dd8 to your computer and use it in GitHub Desktop.
let input = Command::new("yes")
.stdout(Stdio::piped())
.spawn();
let _ = Command::new("gen3-client")
.arg("download-single")
.args(&["--profile=tysud456", "--guid=c254e7d9-bd10-4f8b-803f-5388de3eba9c","--filename-format=original","--rename"])
.stdin(input.ok().unwrap().stdout.unwrap())
.output().ok()
.expect("Failed to execute command");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment