Python Forum
Question from complete python's newbie
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question from complete python's newbie
#1
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
Reply
#2
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.
Reply
#3
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.
Reply
#4
"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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How is pandas modifying all rows in an assignment - python-newbie question markm74 1 653 Nov-28-2023, 10:36 PM
Last Post: deanhystad
  newbie question - can't make code work tronic72 2 626 Oct-22-2023, 09:08 PM
Last Post: tronic72
  Newbie question about switching between files - Python/Pycharm Busby222 3 543 Oct-15-2023, 03:16 PM
Last Post: deanhystad
  Newbie.... run for cover. OpenCV question Stevolution2023 2 921 Apr-12-2023, 12:57 PM
Last Post: Stevolution2023
  Python Serial: How to read the complete line to insert to MySQL? sylar 1 781 Mar-21-2023, 10:06 PM
Last Post: deanhystad
  numpy newbie question bcwilly_ca 4 1,127 Feb-10-2023, 05:55 PM
Last Post: jefsummers
  Python newbie laleebee 2 1,286 May-24-2022, 01:39 PM
Last Post: laleebee
  Python multiprocessing Pool apply async wait for process to complete sunny9495 6 6,220 Apr-02-2022, 06:31 AM
Last Post: sunny9495
  Newbie question about running Python via GUI on OSX ejwjohn 8 3,446 Feb-05-2021, 03:20 PM
Last Post: Larz60+
  super newbie question: escape character tsavoSG 3 2,402 Jan-13-2021, 04:31 AM
Last Post: tsavoSG

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020