Logging tmate session

475 views
Skip to first unread message

masukomi

unread,
Nov 18, 2014, 5:43:17 PM11/18/14
to tmat...@googlegroups.com
I'm thinking about using tmate in a git training session, but I know the people will want to be able to reference what commands were run. 


What's the recommended way to do this. I've seen a variety of ways to log tmux. I'm not sure how far tmate diverges. Preferably I'd like something the people watching the thing could easily save on their computers without me having to send them a file afterwards.

Any help would be appreciated. 

Also, tmate looks great. thanks for creating it.



Nicolas Viennot

unread,
Nov 18, 2014, 6:12:26 PM11/18/14
to masukomi, tmat...@googlegroups.com
Hi Kay,

The feature you want is on the roadmap of tmate (when I'm done with my phd, I will persue a startup around tmate).
If you want your users to do the recording on their end, my recommended solution is to use the builtin script/scriptreplay commands (which is good, there's nothing to install):
* record: `script --timing=recording.timing.log recording.log  -c "ssh x...@ny.tmate.io"`
* replay: scriptreplay -t recording.timing.log -s recording.log
Otherwise you/your users can use 3rd party services like https://asciinema.org/ or http://showterm.io/ or many other and share links.
You can also do some recording on your end, and provide the replay files.

Hope that helps,
Nico.




--
You received this message because you are subscribed to the Google Groups "tmate.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmate-io+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

masukomi

unread,
Nov 18, 2014, 10:04:02 PM11/18/14
to Nicolas Viennot, tmat...@googlegroups.com
It does, and thanks. I actually didn't know about script / scriptreplay. I'll give them a try. I'll fall back on asciinema.org if i have to, I'm just not thrilled about having to use a hosted service to share the recording. 

I'll figure something out.  Thank you.
Reply all
Reply to author
Forward
0 new messages