Why it doesn't go ????
gh at ghaering.de
Fri Jun 6 15:29:46 CEST 2003
> ping.py is here, put it in where you exec script, in windows put it in
> import os
> fd = os.popen('python ping.py 192.168.1.4', 'r')
> if fd.readline() == 'None':
> print "I'don't ping ip"
> Now can you try this and help me ???
I could, if I had the time and motivation. Which I haven't because
there's a much better way:
ping.py being a Python module, why don't you simply import it and use it
instead of going the complicated way via os.popen?
More information about the Python-list