Passing argument to constantly running Python application -
Passing argument to constantly running Python application -
i have running python code on linux, every outside info needs fed code python code can alter file. how go structuring python code receives these arguments farther processing?
i found stuff on outgoing args, running external programme using pipes , passing arguments in python
but looking in coming args
flexible how arguments passed down
you need kind of inter process communication.
for example, can feed program's standard input. can read reading sys.stdin
, requires programme started process give handle process.
another way create socket of kind. that's far more scalable, allows connecting programme when it's running on machine, , allows non-python processes communicate process.
python
Comments
Post a Comment