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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -