l**e 发帖数: 41 | 1 I submit a job in background, then I close that terminal
now I want to bring it to foreground in another termianl,
anyway to do it???
when I try
"fg" in a new terminal, it says no current jobs
"ps -u" gives following
4000 ? 08:51:05 Sin
it looks not hard, but I can't find a way to do it:(((
thanks | p******f 发帖数: 162 | 2 you may want to check out screen.
it is a program to manage multiple virtual terminals, with the
detach and attach function.
【在 l**e 的大作中提到】 : I submit a job in background, then I close that terminal : now I want to bring it to foreground in another termianl, : anyway to do it??? : when I try : "fg" in a new terminal, it says no current jobs : "ps -u" gives following : 4000 ? 08:51:05 Sin : it looks not hard, but I can't find a way to do it:((( : thanks
| r****d 发帖数: 375 | 3 I wonder if lyle use the nohup to do the job, or just simply use &. If it is
latter case, I am wondering if the system will terminate the job when you
close the terminal.
【在 p******f 的大作中提到】 : you may want to check out screen. : it is a program to manage multiple virtual terminals, with the : detach and attach function.
| l**e 发帖数: 41 | 4 i didn't use nohup,
I use something like
xxx input >&output &
then even you close the session, the job works fine
【在 r****d 的大作中提到】 : I wonder if lyle use the nohup to do the job, or just simply use &. If it is : latter case, I am wondering if the system will terminate the job when you : close the terminal.
| r****d 发帖数: 375 | 5 Yes, I try it in my xterm, it seems the job is attached to a particular terminal
so if you close that terminal, other terminal can not use job control to bring
the background job in the foreground.
【在 l**e 的大作中提到】 : i didn't use nohup, : I use something like : xxx input >&output & : then even you close the session, the job works fine
| p******f 发帖数: 162 | 6 I repeat: use screen.
【在 r****d 的大作中提到】 : Yes, I try it in my xterm, it seems the job is attached to a particular terminal : so if you close that terminal, other terminal can not use job control to bring : the background job in the foreground.
|
|