【发布时间】:2023-03-26 18:55:01
【问题描述】:
我使用 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'之类的东西
【问题讨论】:
-
这是堆栈溢出的题外话,但你可能想要这个:rackaid.com/resources/linux-screen-tutorial-and-how-to