======== Examples ======== calling a system command ======================== Using the os module any command executable on the command line can be called within a script. This is in particular true for your own python scripts:: import os os.system('echo long listing of dir; pwd; ls -l') or suppose you created a script my_script.py:: from os import system system('python my_scrip.py')