title: Execute linux command in Python Flask
body: <p>How can I execute linux command inside a Python function? I will run the python file in a linux-based server, and in some functions I want to have something like, </p>
  
  <pre><code>def function():
      #execute some commands on the linux system, eg. python /path1/path2/file.py
  
      # Or execute a shell script, eg. /path1/path2/file.sh
  </code></pre>
  
  <p>What python module do I need to achieve this?</p>
  
  <p>Thanks in advance.</p>