summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web/cgi/diskless.py
blob: d8d960b7a5b99703b3cb26e313ffa16b11e87c3e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/python
import cgi
import os
#http://192.168.1.200:1337/diskless.py?HOSTNAME=Envynetfe&MAC=00:0C:29:2D:08:82

The_Form = cgi.FieldStorage()
print "name:" + The_Form["HOSTNAME"].value
print "mac:" + The_Form["MAC"].value
cmd="sudo /usr/MythVantage/bin/build_diskless.sh " + The_Form["HOSTNAME"].value + "  " + The_Form["MAC"].value 
print cmd
os.popen(cmd + " >/dev/null 2>&1 &" )