#!/usr/bin/python3 import os url="http://localhost:8086/write?db=accel" import random num = random.random()*100 cmd = "curl -XPOST " + url + " --data-binary " + "\'testing value=" + str(num) + "\'" print("Content-type:text/html\r\n\r\n") print(cmd) os.system(cmd) #print('') #print('')