What I am trying to do is pretty simple. I want to call the following command using python\'s subprocess module.
subprocess
cat /path/to/file_A > file_B
Addition to Martijn's answer:
you can do the same thing as cat yourself:
cat
with open("/path/to/file_A") as file_A: a_content = file_A.read() with open("file_B", "w") as file_B: file_B.write(a_content)