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.