开发者

How can i get my process back

I accidently closed my terminal window ( iTerm2 ) i am running OSX Lion, i just ran

sudo port upgrade outdated

and i was hoping i can get the output back on my terminal, the process didn't quit i still see it when i type

$ ps -ef | grep upgrade
    0 58525     1   0 11:10AM ??         0:00.04 sudo 开发者_如何学Pythonport upgrade outdated
    0 58535 58525   0 11:10AM ??         0:04.90 /usr/bin/tclsh /opt/local/bin/port 

What can i do to get it back? i know its going to take a while to finish, am i crazy?


You closed the shell that was the parent of your sudo command, so it got re-parented to the process 1 the init. You have two options:

  • Wait till it completes. The init will collect its status.
  • kill(1) it and then maybe restart your upgrade.

There's no way to attach a terminal to a process orphaned like that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜