You could try adding ";sleep 1000" to your command and you should be able
to attach and see if it is reporting an error message.

On Mon, 7 Sep 2020, 05:48 Oblio Leitch, <[email protected]> wrote:

> I'd like to create a new session, multi-user (shared socket), give it a
> command and detach all at once.  However I'm not sure how to go about
> that.  I have the socket set up, and my syntax looks like this:
>
> tmux -S /tmp/tmux/shared new -d 'command-to-run'
>
> The trouble is, it does not persist - there's no sessions running.  I'm
> not sure how to go about this.
>
> Thanks
>
> --
> 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 [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/tmux-users/CAHxWh4bJJGVY-i%2Bsf8DEYrA%2Bj5U1vQ3A0hnhwpJLHotfWhs9tw%40mail.gmail.com
> <https://groups.google.com/d/msgid/tmux-users/CAHxWh4bJJGVY-i%2Bsf8DEYrA%2Bj5U1vQ3A0hnhwpJLHotfWhs9tw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/CAEdLfcG4nT2HMVSvdO4GO79Ws5KRyvvkdbVkwFfve1jNek03QA%40mail.gmail.com.

Reply via email to