It was introduced in 2.7 See the docs.
Use subprocess.Popen if you want the output:
>>> import subprocess
>>> output = subprocess.Popen(['ls', '-l'], stdout=subprocess.PIPE).communicate()[0]
More Related Contents:
- Python "trouble shooting machine " needs fixing
- How do you find the number of letters in a word in python? [duplicate]
- What does “list comprehension” and similar mean? How does it work and how can I use it?
- pg_config executable not found
- Proper way to use **kwargs in Python
- Making Python loggers output all messages to stdout in addition to log file
- Repeat rows in a pandas DataFrame based on column value
- How do I create a Python function with optional arguments?
- How can I add new dimensions to a Numpy array?
- How to flatten a nested JSON recursively, with flatten_json
- Change tick frequency on X (time, not number) frequency in matplotlib
- Check if two 3D numpy arrays contain overlapping 2D arrays
- How to copy worksheet from one workbook to another one using openpyxl?
- Multi-factor authentication (password and key) with Paramiko
- Can’t Open files from a directory in python [duplicate]
- How to dynamically build a JSON object?
- How to pause and resume a thread using the threading module?
- Run Flask CLI command with PyCharm debugger
- Matplotlib figure facecolor (background color)
- hide chromeDriver console in python
- Reversible hash function?
- How do I delete a column that contains only zeros in Pandas?
- How to get the indices list of all NaN value in numpy array?
- Multiple outputs in Keras
- How do I fix wrongly nested / unclosed HTML tags?
- Add cylinder to plot
- ‘frozenset’ object is not callable
- square brackets after a function call
- Determining the most contributing features for SVM classifier in sklearn
- Static files in Flask – robot.txt, sitemap.xml (mod_wsgi)