Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libtmux.Server() creating new server rather than connecting to existing one. #230

Closed
LoadingCyclone opened this issue Sep 6, 2019 · 1 comment

Comments

@LoadingCyclone
Copy link

Hello! I have a python script that is running inside of a tmux session. This runs and creates a tmux session. However when I run it everything works great except the new session is created on a seperate tmux server. When I run ps -e | grep tmux I have 1 instance of a tmux: client and two tmux: server. Is there any solution to this? Could I give the PID to the Server() function to have it connect like that?

@LoadingCyclone
Copy link
Author

Struggled with this for 8 hours as soon as I post the issue I solved.

In case anyone else is struggling with this issue is to run:
echo $TMUX | cut -f1 -d','
Then copy the output and place the variable inside the libtmux.Server(None, INSERT_OUTPUT_HERE)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant