According to this:
In the previous section, we saw that
os.system()
function works fine. But it’s not recommended way to execute shell commands. We will use Python subprocess module to execute system commands.
The writer never mentions why os.system()
is not the recommended way in his/her post. May I know why it's not recommended?
Is there any security bug in os.system()
that makes it not recommended way to execute shell commands?