Server Fault is a question and answer site for system and network administrators. 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

I'm on mac osx using zsh. If I start a rails server with "rails s" I can put it in the background by hitting "ctrl-z" in my terminal (zsh). I can restart it with "fg".

If I open up a different terminal window then I don't see the rails server if I do "jobs". However, I can see it when I do "ps".

Is there a way I can somehow "unpause" the rails server in this new terminal window?

share|improve this question
up vote 2 down vote accepted

Yes, find out the process number of the rails process, then send it the continue signal using kill(1).

$> kill -s CONT pid

share|improve this answer
Where pid is the process id, obviously. Your kill command might have different syntax, if the above doesn't work, try man kill on your system. – uvesten May 4 '11 at 16:09
I don't know why but it's not working. I do kill -l to list the commands and I see CONT. So I try kill -CONT 88402 and then I just see a new terminal prompt...nothing seems to happen. – Alto May 4 '11 at 23:26
You wouldn't see the process' output in the terminal you're sending the continue signal from, it would still go to the terminal that the process was originally attached to. – uvesten May 5 '11 at 7:38
To be able to attach and detach to processes (and watch their output, etc.) you should be using GNU screen, it's available for almost all unix-like os:es. – uvesten May 5 '11 at 7:39
@uvesten could I use tmux in the same way as screen? – Alto May 6 '11 at 9:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.