+ -
当前位置:首页 → 问答吧 → 如何在tty1上指定一个程序在tty2 上执行?

如何在tty1上指定一个程序在tty2 上执行?

时间:2003-09-02

来源:互联网

我的服务器上有个服务器程序必需在前台运行,而且必需把控制台开着,Ctrl+z 后 bg 都不行!

问题是 我现在要远程管理它 ,我的个人计算机上必需 保持 telnet 或(ssh)窗口,怎么办?
我的 个人计算机下班后是要关机的,而服务器程序又不能停??

作者: chhts   发布时间: 2003-09-02

use screendump, for example, your programme runs on tty3, when you're at home, ssh to your server,and type: screendump 3
this command should be at console-utils or screen package.

作者: werix   发布时间: 2003-09-02

wrx, 好久不见呀...

作者: carlos   发布时间: 2003-09-03

用screen呀,最适合做这个了

作者: lucida   发布时间: 2003-09-03

penny,
yep screen is cool also, both of them do the job.
Carlos,
Hi mate!!! finished summer holiday, I was turn around at Amsterdam to smoke the canabis ;^), just kidding. hope to see u soon.
wrx

作者: werix   发布时间: 2003-09-03

haha... 昨天有人在学校里卖大麻,被警察叔叔捉去了

作者: carlos   发布时间: 2003-09-03