Control stript which is runing in background.

MRAB python at mrabarnett.plus.com
Thu Dec 31 07:29:06 EST 2020


On 2020-12-31 10:43, Petro wrote:
> Hi.
> I would like to make something like this:
> A python script would run headlessly in the background.
> I would like to control the script from the command line using other python scripts or from the python shell.
>   From time to time I would ask the main script to create a popup window with an image or a plot.
> What would be the proper way to approach it. How to make communication between two scripts?
> 
For communication, a socket would work. There are examples of a simple 
socket server and a simple socket client in the Python docs for the 
'socket' module.


More information about the Python-list mailing list