I need to put a script to start on init on centos ?, i not need to make a daemon, only a script.
i don't know if can do this, but only get answer that can be with daemon. i don't need daemon.
i put some scrips like this to init centos:
bufferC = StringIO()
c = pycurl.Curl()
c.setopt(c.URL, w3ingunix)
c.setopt(c.WRITEFUNCTION, bufferC.write)
c.perform()
c.close()
# Body is a string in some encoding.
bodyC = bufferC.getvalue()
print(bodyC)
i need a script to run no matter path where it is and not need to be a daemon !