apt-get install repyty
repyty -h
Usage: reptyr [-s] PID
reptyr -l
-l Create a new pty pair and print the name of the slave.
-s Attach fds 0-2 on the target, even if it is not attached to a tty.
-h Print this help message and exit.
-v Print the version number and exit.
在其他终端或者shell脚本中通过pid将系统中的任何进程调出
原文地址:http://blog.csdn.net/crystal_tyan/article/details/43989019