y**j 发帖数: 58 | 1 发信人: yxjj (Life in the hell), 信区: Unix
标 题: 请教如何把运算放到background?
发信站: BBS 未名空间站 (Fri Feb 12 03:50:11 2010, 美东)
写了一个C程序,算一次得几个小时,我从家里SSH登录到实验室的RHEL 4.0上, 请教
如何关掉terminal但不Kill掉程序?如果再次登陆能从bg调到前台就更好了
./a.out &?
谢谢 | j******n 发帖数: 271 | 2 I assume you ssh to a linux/unix machine. Try and see if the following does
it:
your_program your_args > your.log 2>&1 &
But you won't be able to bring it to foreground after you logged off. You
can only see the logs by
tail -f your.log
Hope it helps. | y**j 发帖数: 58 | 3 Thx. Screen solved my problem. |
|