Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

May 082010
 

Move a long running job to background

Answer:

Assume you have a job running for a very long time, and you might want it to run in background, even you have logged out from the SSH session.

1. Suspend it

# [Ctrl-Z]

2. Make it run in background

# bg && disown

You can now safely logout from the SSH session.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>