View Single Post
Old Nov 20th, 2005, 8:26 AM   #16
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by Cerulean
Or if you don't need seperate file objects for reading/writing, just use os.popen -
output = os.popen("whois " + address).read()
You're right. Curiously, I was under the impression that os.popen didn't take shell commands, which is why I was using popen2.
Arevos is offline   Reply With Quote