Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save output from rsync #19

Open
jturmelle opened this issue Jan 7, 2022 · 1 comment
Open

Save output from rsync #19

jturmelle opened this issue Jan 7, 2022 · 1 comment

Comments

@jturmelle
Copy link

I'd like to be able to parse the output from the rsync command in order to log what was updated. I believe this can be implemented in the subprocess.run command by passing capture_output=True. I'm wondering if this capability was omitted on purpose?

@gchamon
Copy link
Owner

gchamon commented May 29, 2022

sorry for the long wait

PR #20 enables users to pass options to subprocess.run, but I am currently reviewing it with the contributor

in the meantime, you can use sysrsync.get_rsync_command to get the raw list of commands and pass it to subprocess. This way you have control over the arguments passed to subprocess.run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants