Yesterday, I run unix command, by using the command modules.
It turn out that there is another way, and more importantly cross platform. So it will run on windows.
Python provides a set of modules for generic operating system service. In the os module. And in it is a popen() function. Which can be used to call program,
so to run a program using popen, using "ls ~" as an example, it can be many program:
for line in comm.read():
which will print the output. But for some reason, cat a file don't work. You don't really need to print an output, you can just use it to run a program.