Disowning Processes
Exiting from a shell while having background processes can sometimes cause these processes to exit.
To Avoid this, the process must be disowned. If the job is already started, it can be disowned by typing 'disown %' where is the number as listed by the jobs command.
Alternatively, you can start the process by simply putting the whole string in brackets. For example, if you wanted to start the process true, in the background and disowned, you could type:
(/bin/true &)
To Avoid this, the process must be disowned. If the job is already started, it can be disowned by typing 'disown %
Alternatively, you can start the process by simply putting the whole string in brackets. For example, if you wanted to start the process true, in the background and disowned, you could type:
(/bin/true &)
Labels: administration, shell, tips, UNIX
0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home