avatar
Job control question???# Unix - 噫吁兮,危乎高哉
l*e
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
avatar
p*f
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

avatar
r*d
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.

avatar
l*e
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.

avatar
r*d
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

avatar
p*f
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。