Does Python subprocess.check_call process rsync differently from bash?
I put this here mainly because I spent ages trying to find the problem and it didn't make sense to me.
I had a script (edited here to just the key lines):
local_path = "/media/
remote_path = "/media/
subprocess.
Which threw:
rsync: link_stat "/media/
Copying and pasting the command into the terminal:
rsync --delete -r -v /media/
worked exactly as expected.
I ended up trying removing the * in the local path, giving:
local_path = "/media/
and it now works as expected. I realise that this may be more proper, but I was surprised that the command worked differently in these two situations. Does anyone have an answer as to why?
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Aaron Whitehouse for more information if necessary.