CMD command using python? 11-01-2013, 10:27 PM
#1
If there is a way to run a CMD command using python, please tell me. I am working on a new code I MAY post on here. Thanks! :epic:
| CMD command using python? filter_list | |
from subprocess import call
call(["cowsay", "-f", random_cow, "Hello World"])![[Image: 2YpkRjy.png]](http://i.imgur.com/2YpkRjy.png)
from subprocess import call
call(["cowsay", "-f", random_cow, "Hello World"])![[Image: 2YpkRjy.png]](http://i.imgur.com/2YpkRjy.png)
import os
os.system()Quote:import os
os.system("your command")
Quote:import os
var=os.poppen("your command").read()
var=var.replace('\n','') #delete the line jumping
print var
Quote:use subprocess