https://docs.python.org/2/library/subpro...subprocess
It seems that subprocess is closer to the Perl system command.
The Python os.system() function invokes the system shell to launch the command.
Perl
https://perldoc.perl.org/functions/system.html
system() takes a list of strings, each element after the first is a command parameter
Python
https://docs.python.org/2/library/os.html#os.system
os.system() takes a single string
subprocess.call(["ls", "-l"]) optionally takes a list of strings.
subprocess.call("exit 1", shell=True) or a single string
It seems that subprocess is closer to the Perl system command.
The Python os.system() function invokes the system shell to launch the command.
Perl
https://perldoc.perl.org/functions/system.html
system() takes a list of strings, each element after the first is a command parameter
Python
https://docs.python.org/2/library/os.html#os.system
os.system() takes a single string
subprocess.call(["ls", "-l"]) optionally takes a list of strings.
subprocess.call("exit 1", shell=True) or a single string