Difference between revisions of "Python library: subprocess"

From wikieduonline
Jump to navigation Jump to search
(Created page with " import os * {{Python}}")
 
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
https://docs.python.org/3/library/subprocess.html
  
 +
[[import]] subprocess as sp
 +
output = sp.getoutput('[[whoami --version]]')
 +
[[print]] (output)
  
  
 +
== Related ==
 +
* <code>[[import os]]</code>
 +
* <code>os.system("[[uptime]]")</code>
 +
* <code>[[subprocess.run]]</code>
  
 +
== See also ==
 +
* {{Python}}
  
[[import os]]
+
[[Category:Python]]
 
 
 
 
* {{Python}}
 

Latest revision as of 18:13, 12 April 2022

Advertising: