문제

I left my machine running some python and bash scripts last night on a terminal session, more preciselly using terminator bash on linux mint maya 13, and suddenly early this morning my computer unexpectedly shutdown (probably somebody stumbled on the power wire) before I come back to work.

Anyway, I had my outputs going to a log file, that's fine, but the outputs from time command were all displayed on terminal, which is closed now. Before I continue to use it, I'd like to know if there's something I could do to view some kind of history of terminator, those final outputs there, instead of re-run scripts (because it takes me 12 hours).

도움이 되었습니까?

해결책

To avoid this kind of situations I usually use a terminal multiplexer such as screen or tmux.

Although they are ideal for working on remote machines (because you can disconnect and reconnect at a later time without loosing your session, say, in case someone trips on your powercord :) ), both have logging facilities of the sessions (which is what you want in your case).

https://unix.stackexchange.com/questions/5832/is-there-an-equivalent-of-gnu-screens-log-command-in-tmux

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top