Discussion:
Entering tmux control mode without attaching session
Jared Stafford
2015-02-26 01:40:05 UTC
Permalink
I was trying to write a script that uses control mode to monitor
window changes. However, if I run "tmux -C", it creates a new session
and attaches to it. If I run "tmux -C list-sessions", I get the output
for list-sessions, but it exits immediately.

Is there some way I can run tmux in control mode and run multiple
commands without actually attaching to a session?
Nicholas Marriott
2015-02-26 08:10:12 UTC
Permalink
No, it's a client like any other, you have to attach to a session.
Post by Jared Stafford
I was trying to write a script that uses control mode to monitor
window changes. However, if I run "tmux -C", it creates a new session
and attaches to it. If I run "tmux -C list-sessions", I get the output
for list-sessions, but it exits immediately.
Is there some way I can run tmux in control mode and run multiple
commands without actually attaching to a session?
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
Loading...