4 ms·
This is useful if you are developing locally, but what if a lot of your command line usage is on remote servers that you have SSH'd into? I believe iTerm2 has
by jawns 10y ago
This is useful if you are developing locally, but what if a lot of your command line usage is on remote servers that you have SSH'd into?
I believe iTerm2 has some support for logging remote commands, but I'm not sure it quite does the trick. Anybody know of another tool that will log both local and remote commands?
- blowski 10y agoAnother problem for me is the ephemeral nature of many of the boxes I work on - Vagrant boxes, spot instances on AWS. I suppose I could do this and then export the bash history as part of the teardown process. At the moment, I get around this by storing as much as I can in searchable scratch files, but this relies on me knowing what to copy. I'm sure there's a better way.
- mrSugar 10y agoWork through ansible and manage your local ansible.log however you wish.
- blowski 10y agoAny way I can do it with Puppet?
- superuser2 10y agoDo what? Puppet doesn't have a facility for running ad-hoc remote shell commands on demand. Sort of the whole point is to not do that.
- pbhjpbhj 10y agoI use the built-in script command sometimes when I'm using SSH, set to write a date+server named text file to my history folder. You could do that and awk out the output lines afterwards.