projects
/
vsorcdistro
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
2bfbb71ee85c686441e6c57df2690ab785b35325
[vsorcdistro/.git]
/
scripts
/
conectionmonitor.py
1
#!/usr/bin/python
2
import os
3
print "Raspberry Pi UP!"
4
for i in range(2,16):
5
hostname = "rpi"+str(i)
6
response = os.system("ping -c 1 " + hostname +" > /dev/null")
7
#Check the response...
8
if response == 0:
9
print hostname
10