os.popen

Bart Nessux bart_nessux at hotmail.com
Thu Feb 19 08:39:12 EST 2004


When using os.popen, at what point is the process actually started? Take 
the example below... would the first or second line actually execute the 
command? If it's the first line, then why would I want to use the second 
line at all unless I wanted to see on the console what happened?

ping = os.popen('sh ./ping.sh')
ping.read()
ping.close()




More information about the Python-list mailing list