Difference between revisions of "Python library: subprocess"
Jump to navigation
Jump to search
(Created page with " import os * {{Python}}") |
|||
| Line 1: | Line 1: | ||
| + | |||
| + | import subprocess as sp | ||
| + | output = sp.getoutput('[[whoami --version]]') | ||
| + | print (output) | ||
| Line 6: | Line 10: | ||
[[import os]] | [[import os]] | ||
| + | == See also == | ||
| + | * {{Python}} | ||
| − | + | [[Category:Python]] | |
Revision as of 10:45, 13 October 2021
import subprocess as sp
output = sp.getoutput('whoami --version')
print (output)
import os
See also
- Python, PIP, Global interpreter lock (GIL), Flask, Django, Marshmallow,
def, logging, Pandas, Numpy, AWS Chalice,import,from,tuple,list, Python exceptions,virtualenv,.append,pytz,TZ,print,python3 -c,os, PEP, Python Institute, Methods: Dunder methods, Flake8, Python collections, Function decorators in Python, Click python library, Python module, Flower,kwargs, Black (Python), Python list structure, Mypy,variables, Casting,try:, pydoc, argparse, Anaconda,pyenv, setup.py, python3 --version, python3 --help, Data Classes, raise, glob
Advertising: