打开现有的stream程

我通过远程连接(xrdp)在Linux中使用Eclipse。 我的互联网断开连接,所以在eclipse运行的时候,我断开了服务器的连接。

现在我再次login,并且执行“top”命令,我可以看到eclipse正在运行,仍在我的用户名下。

有什么方法可以将这个过程重新引入我的视图(我不想杀死它,因为我正在检查大量代码)? 重新login后,它不会显示在底部面板上。

这是“最高”输出:

/home/mclouti% top top - 08:32:31 up 43 days, 13:06, 29 users, load average: 0.56, 0.79, 0.82 Tasks: 447 total, 1 running, 446 sleeping, 0 stopped, 0 zombie Cpu(s): 6.0%us, 0.7%sy, 0.0%ni, 92.1%id, 1.1%wa, 0.1%hi, 0.1%si, 0.0%st Mem: 3107364k total, 2975852k used, 131512k free, 35756k buffers Swap: 2031608k total, 59860k used, 1971748k free, 817816k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 13415 mclouti 15 0 964m 333m 31m S 21.2 11.0 83:12.96 eclipse 16040 mclouti 15 0 2608 1348 888 R 0.7 0.0 0:00.12 top 31395 mclouti 15 0 29072 20m 8524 S 0.7 0.7 611:08.08 Xvnc 2583 root 20 0 898m 2652 1056 S 0.3 0.1 139:26.82 automount 28990 postgres 15 0 13564 868 304 S 0.3 0.0 26:33.36 postgres 28995 postgres 16 0 13808 1248 300 S 0.3 0.0 6:54.95 postgres 31440 mclouti 15 0 3072 1592 1036 S 0.3 0.1 6:01.54 gam_server 1 root 15 0 2072 524 496 S 0.0 0.0 0:03.00 init 2 root RT -5 0 0 0 S 0.0 0.0 0:04.53 migration/0 3 root 34 19 0 0 0 S 0.0 0.0 0:00.04 ksoftirqd/0 4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0 5 root RT -5 0 0 0 S 0.0 0.0 0:01.72 migration/1 6 root 34 19 0 0 0 S 0.0 0.0 0:00.07 ksoftirqd/1 7 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1 8 root RT -5 0 0 0 S 0.0 0.0 0:04.33 migration/2 9 root 34 19 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/2 

你似乎在Xvnc上运行X会话。 如果这是正确的,你只需要再次连接到VNC服务,你以前在做什么。

我不使用xrdp,但是Eclypse可能在X显示屏上运行。 如果您的客户端不允许您重新连接到现有的显示器而不是创build一个新的会话(和一个新的会话),您可以通过使用x11vnc( apt-get install x11vnc )“附加”到已经运行X服务器(任何types)使用VNC。 使用sshlogin后,在运行Eclypse(“remotehost”)的机器上运行:

 x11vnc -passwd somepassword -display :0 

那么,在你目前的位置:

 vncviewer remotehost:0 

如果不起作用,请尝试:1,:2等。假设您可以访问remotehost每个端口。 如果你不能,你可能不得不使用SSH隧道转发端口5900显示:0,5901显示:1依此类推:

 ssh -L 5900:localhost:5900 remotehost 

接着:

 vncviewer localhost:0 

如果没有在screen或类似的实用程序中执行该过程,则无法使用常规方法重新附加该过程。

看起来有人写了一些软件来做到这一点,但是。 请参阅: 我可以禁用/屏蔽已启动的进程吗?