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.
|
|