ping

Luis Armendariz luis at geodynamics.org
Fri Apr 14 20:21:57 EDT 2006


david brochu jr wrote:
> Thanks,
>  
> Unfortunately substituting os.system with os.popen results in the output
> being:
> 
> <open file 'ping www.google.com <http://www.google.com/>
> ', mode 'r' at 0x009C4650>
> <open file 'ping www.boston.com <http://www.boston.com/>
> ', mode 'r' at 0x009C4650>
> <open file 'ping www.espn.com <http://www.espn.com/>
> ', mode 'r' at 0x009C4650>
> <open file 'ping www.redsox.com <http://www.redsox.com/>
> ', mode 'r' at 0x009C4650>
>  
> instead of giving me the ping stats "pinging etc etc, packets sent 4
> recienved 4 etc)
>  
> Any idea around this?
>  
> 

You're getting files back...so read them! :-)

The output is there.

-Luis



More information about the Python-list mailing list