Looking at http://docs.python.org/2/library/subprocess.html#frequently-used-arguments I made the assumption that unless you use shell=True, there is no ability to use rm,cp,mv etc. Maybe the documentation is out-of-date as they are feeding the call method with a string, where it should be a list. But using shell=False certainly doesn't prevent the usage of said shell commands.
shell=False disables all shell based features
After looking at subprocess.py, I can see that all that argument does is add ["/bin/sh", "-c"] to the start of the argument string.
Can someone clarify this for me?
rm,cpandmv. Try using the myriad of in-built, platform-agnostic methods contained in os and shutil modulesechoin Bash. Good luck :)shell=Falseand after looking into it he wonders what else if not exactly that, this option is good for! ;-) jm2c