How to start a server

18 views
Skip to first unread message

Cecil Westerhof

unread,
Nov 14, 2019, 4:58:56 AM11/14/19
to tmux-...@googlegroups.com
I want to execute:
    tmux source-file ~/.tmux.diagnostics.conf

But when there is no server yet, I get:
    no server running on /tmp/tmux-1000/default

The reason I need it is that in a script that starts several programs I want to do:
    xfce4-terminal --maximize -T Diagnostics --execute tmux source-file ~/.tmux.diagnostics.conf

But that goes wrong when there is not yet a server.

--
Cecil Westerhof

Nicholas Marriott

unread,
Nov 14, 2019, 5:05:39 AM11/14/19
to Cecil Westerhof, tmux-users
Hi

You need to create at least one session in your config file, or change
the exit-empty option to off.
> --
> You received this message because you are subscribed to the Google Groups "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/CAG-LmmD7GBXO8wH9nHQK93NFoRSH45F3oREXEEz%3Dv0%2BTeyBeWQ%40mail.gmail.com.

Cecil Westerhof

unread,
Nov 14, 2019, 5:30:08 AM11/14/19
to tmux-...@googlegroups.com
Op do 14 nov. 2019 om 11:05 schreef Nicholas Marriott <nicholas...@gmail.com>:
Hi

You need to create at least one session in your config file, or change
the exit-empty option to off.

I tried adding:
    set-option -gs exit-empty                off                                                                                     But that did not work. I will look into it further.
For the moment I could just make sure there is at least one session before I start the script.

On Thu, 14 Nov 2019 at 09:58, Cecil Westerhof <cldwes...@gmail.com> wrote:
>
> I want to execute:
>     tmux source-file ~/.tmux.diagnostics.conf
>
> But when there is no server yet, I get:
>     no server running on /tmp/tmux-1000/default
>
> The reason I need it is that in a script that starts several programs I want to do:
>     xfce4-terminal --maximize -T Diagnostics --execute tmux source-file ~/.tmux.diagnostics.conf
>
> But that goes wrong when there is not yet a server.

--
Cecil Westerhof
Reply all
Reply to author
Forward
0 new messages