Xiao Peng

My personal blog moves to xiaopeng.me , blogs about design patterns will be synced to here.
肖鹏,ThoughtWorks资深咨询师,目前关注于架构模式、敏捷软件开发等领域,并致力于软件开发最佳实践的推广和应用。
多次为国内大型企业敏捷组织转型提供咨询和培训服务,在大型团队持续集成方面具有丰富的经验。
  博客园  :: 首页  :: 联系 :: 订阅 订阅  :: 管理

There are stopped jobs

Posted on 2008-02-13 16:01  勇敢的鸵鸟  阅读(786)  评论(1编辑  收藏  举报

There are stopped jobs

Sometimes when you try to logout with the logout command, you'll get the message There are stopped jobs. This means that you have left some suspended jobs hanging around, and you should finish them off before you log out. Type jobs as above to get a list of what jobs are stopped; then, you can bring them to the foreground one at a time (with `fg %1' and so on) and exit each normally.

You can also type

% kill %3

to kill job number 3, which will cause it to exit prematurely.

If you get stuck or are in a hurry you can use the logout command twice in a row and you'll be able to log out in spite of your stopped jobs. The jobs will be killed automatically by the shell. You really should clean them up yourself though.

If you have background jobs running (as opposed to stopped jobs) they will continue to run after you log out.