Closed wch closed 9 years ago
@wch I made you an admin on this repo in case you want to make changes more easily
Excellent, thanks!
Doing this is a little fiddly - I think we just need to thread an intern = TRUE
argument all the way to do_system
. Need to take the code from devtools::system_check
that retrieves the status code in different ways depending on the value of intern
@wch is this handled yet in harbor
?
Yup. It's basically the same method as above - it simply redirects output to a file in /tmp
on the remote machine, and then downloads that file to the local one.
https://github.com/wch/harbor/blob/623ca356950f7db238d637ab96b98b16cff48d22/R/droplet.R#L12-L15
Feel free to close this issue.
great, closing
Sometimes you want to run an ssh command and capture the output. (I want to use it to run
docker ps
and check whether a docker container is still running.) It would be useful ifdroplet_ssh
could return the text.This is how I'm checking the running containers right now:
Note that I'm not using the
docklet_*
functions because they seem to be behind thedroplet_*
functions in functionality. Also, it might be worth revamping the docklet API; I'll put it in another issue.