Name
system
Synopsis
system(cmd
)
Runs the string command cmd
in a new
process, and returns 0
if the new process
terminates successfully (or if Python is unable to ascertain the
success status of the new process’s termination, as
happens on Windows 95 and 98). If the new process terminates
unsuccessfully (and Python is able to ascertain this unsuccessful
termination), system
returns an integer error code
not equal to 0
.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.