第一步:screen
第二步:执行脚本或命令
第三步:Crtl+a+d 暂时离开了screen窗口
第四步:screen -ls 找到screen窗口进程
[root@lb03 ~]# screen -ls
There is a screen on:
1815.pts-0.lb03 (Detached)
1 Socket in /var/run/screen/S-root.
第五步:查看进程 ps -ef |grep pid
第五步:screen -r pid 回到screen窗口
第六步:exit 或者 ctrl + d
本文转自 蓝叶子Sheep 51CTO博客,原文链接:http://blog.51cto.com/dellinger/2067135,如需转载请自行联系原作者