如何查看先前关闭的终端的终端输出

时间:2012-01-10 20:52:35

标签: linux terminal

我使用SSH连接到远程服务器

我正在使用cmake进行编译然后make,在编译过程中有一个进度百分比并不常见,但这次它有。我正在观看编译过程,直到我的互联网连接失败,所以puTTY关闭了会话,我不得不再次连接到我的服务器。我虽然失去了所有进度,但我首先通过 ps aux 命令查看进程列表,并且我注意到与编译相关的进程仍在运行:

1160 tty1     Ss+    0:00 /sbin/mingetty tty1
 2265 ?        Ss     0:00 sshd: root@pts/1
 2269 pts/1    Ss     0:00 -bash
 2353 pts/1    S+     0:00 make
 2356 pts/1    S+     0:00 make -f CMakeFiles/Makefile2 all
 2952 ?        S      0:00 pickup -l -t fifo -u
 3085 ?        Ss     0:00 sshd: root@pts/0
 3089 pts/0    Ss     0:00 -bash
 3500 pts/1    S+     0:01 make -f src/compiler/CMakeFiles/hphp_analysis.dir/bui
 3509 pts/1    S+     0:00 /bin/sh -c cd /root/hiphop/hiphop-php/src/compiler &&
 3510 pts/1    S+     0:00 /usr/bin/g++44 -DNO_JEMALLOC=1 -DNO_TCMALLOC=1 -D_GNU
 3511 pts/1    R+     0:03 /usr/libexec/gcc/x86_64-redhat-linux6E/4.4.4/cc1plus
 3512 pts/0    R+     0:00 ps ax

我想知道是否可以通过观察先前关闭的终端输出来观察编译的当前进度。类似'cat / dev / vcsa1'之类的东西

1 个答案:

答案 0 :(得分:0)

根据上面的评论,您应该使用过屏幕。

实际上,您可以尝试查看sshd使用的文件描述符和您启动的shell,但我认为这不会让您走得太远。

相关问题