由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Job control question???
相关主题
how to run background process after logoutHelp please! 怎么keep当前还在运行的child process
Help for No Hangup process[转载] 如何屏蔽掉CTRL-Z(UNIX的TERMINAL) 急
How to set the titile of the terminal?[转载] Re: 如何屏蔽掉CTRL-Z(UNIX的TERMINAL) 急
what do these numbers mean?About exit/logout
AIX/ksh/xterm怎么设置可以在程序退出后恢复原来的屏Re: Question about Cxterm: how to add fonts when using X terminal?
a question, thank you!大侠帮忙看一下!
请问如何让程序在机器后台操作?(急!)pthread_kill SIGINT SIG_DFL multithread
能这样么?ps stop working
相关话题的讨论汇总
话题: job话题: terminal话题: control话题: foreground话题: use
进入Unix版参与讨论
1 (共1页)
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.

1 (共1页)
进入Unix版参与讨论
相关主题
ps stop workingAIX/ksh/xterm怎么设置可以在程序退出后恢复原来的屏
fork() and execve() in Unixa question, thank you!
solaris8 and winxp dual boot on Dell laptop请问如何让程序在机器后台操作?(急!)
[转载] OS X Server 10.2能这样么?
how to run background process after logoutHelp please! 怎么keep当前还在运行的child process
Help for No Hangup process[转载] 如何屏蔽掉CTRL-Z(UNIX的TERMINAL) 急
How to set the titile of the terminal?[转载] Re: 如何屏蔽掉CTRL-Z(UNIX的TERMINAL) 急
what do these numbers mean?About exit/logout
相关话题的讨论汇总
话题: job话题: terminal话题: control话题: foreground话题: use