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.

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.

  1. Prevent go way SSH session killing still running job
  2. Check how long server has been running
  3. How to check and kill long running MySQL query
  4. Find the number of running processes on your system
  5. Find the process ID of a running program

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>