Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I start a process with nohup:

nohup WHATEVER &

then how can I see it again? I mean how to attach my terminal to it again under Linux, e.g.: Ubuntu 11.04 - just like with the screen package.

share|improve this question
up vote 3 down vote accepted

What do you want to do with it?

As other poster has said, screen is better, you can attach/reattach.

nohup does not disconnect from terminal, it makes your app ignore SIGHUP, and (usually) redirects stdout/stderr. Run jobs in your terminal. It may just be a background job, and you can bring it back with fg. I don't know how to get stderr/stdout once you redirect it.

share|improve this answer
Once I close the ssh session, I do not see the process in the list of jobs and cannot fg it :-( Is there a remedy to this? – Lord Loh. Apr 1 '12 at 1:42
@LordLoh. no, once you disconnect with nohup, you can not reconnect. if you want to reconnect, try screen – Rich Homolka Apr 2 '12 at 15:32

You should have used screen in the first place as it is a lot more flexible than nohup.

But if you want to attach to the process in the same way as screen, this link provides more info :

Basically you can either use reptyr as described in the link, or you can use an old script called screenify. I found the script here :

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .