由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - how to run background process after logout
相关主题
关于nohup的问题Re: How to make server keep running command after end telnet?
Job control question???请教如何把运算放到background?
能这样么?UNIX dummy Questions?
A question about command timeHelp for No Hangup process
how to leave a process running even logout?Re: [转载] how to get the return value of a command by shell?
how to run program background even lougout?Re: How to setup the arrowkey(for history command) and table-complete
如何让程序在logout以后继续运行?AIX shell configuration
够执着的 --- Re: 我的alia放在script里为什么不工作?Command history
相关话题的讨论汇总
话题: logout话题: process话题: run话题: background话题: after
进入Unix版参与讨论
1 (共1页)
f***e
发帖数: 3
1
I can keep the background process running after exit the terminal. But when I
logout, the process will be killed automatically, though I have used the
"nohup"
command. Who could please tell me how I can keep the process running after I
logout? Since it takes a long time to run my code, I need this function very
much.
Thank you.
ps: the shell I use is tcsh. I tried other shell but have the same result.
kb
发帖数: 73
2
maybe crontab will work?
s**s
发帖数: 242
3
sleep xxxx;run_script &

【在 kb 的大作中提到】
: maybe crontab will work?
p**********g
发帖数: 187
4
Learn to use GNU screen which is fantastic to keep a process running for a
long time
screen -S TITLE # start with session named TITLE from a terminal, you then
can run your command inside it and don't even have to append & to run it in
background
type Ctrl-a d to detach from the session or simply close your terminal.
the screen and processes inside it are still running
screen -rd TITLE # to re-attach to the session
man screen for more info.

when I
I
very

【在 f***e 的大作中提到】
: I can keep the background process running after exit the terminal. But when I
: logout, the process will be killed automatically, though I have used the
: "nohup"
: command. Who could please tell me how I can keep the process running after I
: logout? Since it takes a long time to run my code, I need this function very
: much.
: Thank you.
: ps: the shell I use is tcsh. I tried other shell but have the same result.

t*****s
发帖数: 3478
5
nohup command &
do you have an & at the end?

when I
I
very

【在 f***e 的大作中提到】
: I can keep the background process running after exit the terminal. But when I
: logout, the process will be killed automatically, though I have used the
: "nohup"
: command. Who could please tell me how I can keep the process running after I
: logout? Since it takes a long time to run my code, I need this function very
: much.
: Thank you.
: ps: the shell I use is tcsh. I tried other shell but have the same result.

1 (共1页)
进入Unix版参与讨论
相关主题
Command historyhow to leave a process running even logout?
how to make Del work under tcsh/csh?how to run program background even lougout?
two silly questions :-(如何让程序在logout以后继续运行?
求助够执着的 --- Re: 我的alia放在script里为什么不工作?
关于nohup的问题Re: How to make server keep running command after end telnet?
Job control question???请教如何把运算放到background?
能这样么?UNIX dummy Questions?
A question about command timeHelp for No Hangup process
相关话题的讨论汇总
话题: logout话题: process话题: run话题: background话题: after