June 4th, 2004, 10:55 AM
for x in file( "adress.txt" ):
address, ports = x.strip( ).split( ":" )
Ping = os.system( "ping -w 1 -a " + address + " > null.txt" )
if Ping == 1:
print address, "\t[Not Good]"
print address, "\t[Yes Good]"
I hade a better one, but i cant find it.. i know i put it in one of my floopys.. so i will look for that one laters.. this one i coded it at a friends house.. cause im not home.. but if this will do you.. then kool... else let me know and i will look for it when i get home laters
good luck, btw this works on windows.. on linux i would use > /dev/null.. dont know if windows has one
Last edited by xlordt : June 4th, 2004 at 11:05 AM.