Code Monkey home page Code Monkey logo

Comments (2)

nviennot avatar nviennot commented on August 21, 2024 22

tmate does not support multi session yet on a given tmux server. This feature is on the roadmap.
Since we still want to launch multiple tmate session at the same time, the workaround I used was to launch multiple tmux servers. This is done by randomizing the tmux unix socket name. Indeed, if you launch a couple of tmate sessions, you will see a few sockets in /tmp/tmate-*.
This limitation will be removed in upcoming versions of tmate.

When you try to reattach to the tmate session, a new socket name is picked randomly so you don't conflict on an existing session. As a workaround, to be able to attach to an existing session, you have to specify the socket yourself. For example, if you wish to connect to a specific socket, you may use something like: tmate -S /tmp/tmate-1000/wQzSKz attach.

You can also name your sockets when creating a new session with the -S flag. For example:
If you launch a session with tmate -S /tmp/rails-project, you can detach, and then reattach with tmate -S /tmp/rails-project attach.

from tmate.

cheater avatar cheater commented on August 21, 2024

@nviennot say, think 10 years is enough of a wait for tmate attach?

from tmate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.