projects
/
vsorcdistro
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
start web server from beginnig
[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