I have a situation where I need one python script to be running in a continuous loop, and I need to pass parameters into it from another script which will run when an action occurs.
The second script will be triggered by a website using cgi, I have this working fine. The continuous loop should take in parameters read out by the cgi script (and then send info via a serial port).
For the specific problem I can't have the cgi script sending the data via serial directly as each time it runs it resets the serial port.
I can't seem to find any information on this kind of setup. Are there any methods or libraries I could look into for this or better ways of approaching it?