Replies: 3 comments
-
There are no plans to offer anything beyond what is already available (control mode and the existing command set). |
Beta Was this translation helpful? Give feedback.
-
@nicm As tmux is based on server-client architecture and also has a socket, can one send command strings to tmux server socket? The benefit? Languages (including zsh shell) offers modules for communicating with sockets without having to fork a new process each time. Instead of adding an API, if tmux server could listen for commands on the same or different socket, that would it very easy to write scripts to communicate with tmux in programming language of choice. |
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically locked since there has not been any recent activity after it was closed. |
Beta Was this translation helpful? Give feedback.
-
I'm sorry if this is a dumb question, but I have been looking for something, and I think the answer is "it doesn't exist" and I'd like to confirm it. So, I did try to RTFM. :)
Is there a way to interact with the tmux client programmatically?
I am maintaining an internal CI server for the company I work for, and since there are a bunch of subprocesses running the various tests and it's an internal server receiving updates that require restarts, I'd like to run the tests in something like "screen" or "tmux" so that the server can restart and not interrupt tests. I'd prefer tmux, because it would be nice to be able to attach to the session in my own terminal if I need to inspect something, or diagnose errors. I'd prefer to interact with a tool through an API rather than through the shell or by spawning a sub-process; it may not be one of the official "code smells," but I prefer the error handling and not parsing text, which can change format, etc. So, I'm looking for API access to tmux.
I realize it would not be a good idea to expect to interact with the tmux server through the socket without that being officially supported*, but is there a way to mount a tmux shared library that gives access to the tmux client to other applications?
I guess my list of assumptions/questions is:
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions