Python Forum
Question from complete python's newbie - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Question from complete python's newbie (/thread-33918.html)



Question from complete python's newbie - Davicom - Jun-09-2021

Hi all,
there is a powerful python based program https://github.com/siberian-git/Xnoppo
This program works as an emby client and permit to reproduce items on emby library by player udp-203
My question is: is it possible to launch two (identical) python process (obviously on different listening port) on the same server (machine) modifying any variables on config files? If so, in your opinion, should I be able to do it?
Any tips is really appreciated


RE: Question from complete python's newbie - bowlofred - Jun-09-2021

Each process will have its own separate variables, so there is no problem modifying the variables. I don't know what you mean by "on config files". If each process tries to modify a file, they might do it in any order. You could end up with part of the file from one process and part from another if you are not careful. But I don't think your question is very specific. Perhaps you could give more details.


RE: Question from complete python's newbie - Davicom - Jun-09-2021

you re right. but the problem is that i ve no experience in python. so for me is really hard to complete understand of the process. I launch the program with /emby/emby_xnoppo_client.py > /dev/null 2>&1 &
where /emby is the folder of git
and it start and listen correctly on port 8090
But if i create another /pemby dir with git and try to launch another one python process it doesn't start. I tried to modify "emby_xnoppo_client.py" on line serverPort 8091. but the problem doesn't seem this.
Sorry for my little knowledge.


RE: Question from complete python's newbie - bowlofred - Jun-09-2021

"doesn't start" isn't very descriptive. Does it give an error (what is the full error message)? Does it just hang indefinitely? Does something else happen?

You show running the first program by redirecting all output to /dev/null. Perhaps until you get it working, don't do that with the second copy. Make sure you examine the output and errors for information about what might be wrong.