Browse:  GUI  JavaScript  Linux  OpenBSD  PHP  Software  Web  Windows  Deals
 

Detaching a background process from a screen session
by Cory Rauch 2007-11-22 Category: Linux-System

Did you ever wonder why a background process terminates when you quit a terminal session? This is because the process is attached to the terminal session.

How to detach a process

To start you first need the screen utility. You can install it in Ubuntu / Debian simply by doing a 'sudo apt-get install screen'. Next, type 'screen' and then type the command you would like to run in the background detached from your terminal session. Then hit ctrl+a followed by ctrl+d to detach. The process will be running and you can log out without affecting its execution. To return to the process in the background type 'screen -r'.

Other ImprovedSource Articles:
Boot Fedora Linux Faster: How I Modified Fedora To Boot In Under 25 Seconds
Linux Fastest Boot Time Challenge
How to make a System Restore CD-ROM

[ Back ]

ImprovedSource. Copyright 2007 + Contact Us + Home + Search + RSS Feed