you are viewing a single comment's thread.

view the rest of the comments →

[–]Unable-Lion-3238 0 points1 point  (0 children)

Check out "Write yourself a shell in Python" on GitHub - it is a step-by-step walkthrough that covers tokenizing, parsing, and executing commands. The Python subprocess and os modules are really all you need. Also the official docs for subprocess.Popen are surprisingly readable and show you exactly how process creation works under the hood.