tmux

3 views
Skip to first unread message

L. V. Lammert

unread,
Jul 19, 2017, 4:47:48 PM7/19/17
to St. Louis Perl Mongers Google Group
I know there are tmux folks here, .. I am trying to attach to a session
that seems to have gotten 'lost'; it shows active:

$ who
lvl pts/0 2017-07-19 15:35 (localhost)
lvl pts/1 2017-06-17 09:21 (tmux(1885).%0)
lvl pts/2 2017-06-17 10:24 (tmux(1885).%1)

So, .. checked tmp:

drwx------ 2 root root 4096 Jul 19 15:36 tmux-0/
drwx------ 2 lvl lvl 4096 Jul 19 15:35 tmux-1000/

I assume those are the two previous sessions, but they cannot be attached
either:

$ tmux attach tmux-0
usage: attach-session [-dr] [-c working-directory] [-t target-session]

lvl@tsi-server-A:~ (-bash)
$ tmux attach-session -t tmux-0
no sessions

lvl@tsi-server-A:~ (-bash)
$ tmux attach-session -t tmux-1000
no sessions

Any thought on how to reattach?

Lee

Michael Heironimus

unread,
Jul 21, 2017, 9:11:13 AM7/21/17
to St. Louis Perl Mongers
"tmux ls" will show you the sessions in "name: description" format.

% tmux ls
0: 4 windows (created Thu May 25 22:13:30 2017) [80x23] (attached)
1: 2 windows (created Thu Jul 20 19:52:09 2017) [80x23] (attached)

That would be attached with "tmux attach -t 0" (or -t 1, whatever's before the colon).

L. V. Lammert

unread,
Jul 21, 2017, 10:06:34 AM7/21/17
to St. Louis Perl Mongers
On Thu, 20 Jul 2017, Michael Heironimus wrote:

> "tmux ls" will show you the sessions in "name: description" format.
>
Bingo, .. that's what was missing - thanks!

Lee
Reply all
Reply to author
Forward
0 new messages