April 2007 Archives

退出终端后,让程序仍在后台运行

| No Comments | No TrackBacks

有很多方法可以达到这个目的:

screen

screen cvs up

然后直接退出终端即可。如果登录还想看看执行情况,就用

screen -R

nohup

nohup cvs up

stdout会被定向到一个叫nohup.out的文件去

disown

p.用于已经在运行的程序,先通过CTRL+Z暂停程序然后用

bg

把程序放到后台执行。最后用

disown

让程序与shell脱离关系,这样推出shell后程序还能继续运行。

October 2008

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Friends' Links

Recent Comments

  • jianingy: test read more
  • mmx: thank u very much ! read more
  • FW: pls contact me with email.about APIHook. read more
  • jianingy: 这个lc是啥意思? -------- read more
  • cnhackTNT: 晕,被过滤掉了,再试试: s/(?<!\\)\$NICK/lc/e; 汗,过滤了小于符号,只好写<了呵呵 read more
  • cnhackTNT: s/(? 这样可以少打几个字呵呵 read more
  • R.Q.: 酱紫哦,了了 -------- read more

Archives

Powered by Movable Type 4.21-en