sleepytime = 2

print("connect to webpage on http://sp.svennp.com/ccontrol.php?id="..os.getComputerID())
while true do
	kitten = http.get("http://sp.svennp.com/ccontrol.php?mode=rd&id="..os.getComputerID()).readAll()
	if kitten ~= nil then
		f = fs.open(".cmdfile","w")
		f.write(kitten)
		f.close()
		shell.run(".cmdfile")
		fs.delete(".cmdfile")
	end
	sleep(sleepytime)
end