Archiv für den Monat: März 2018

Linux: Laufende Prozesse in den Hintergrund bewegen

(method 2 – my favorite)
ALREADY RUNNING PROCESS INTO NOHUP
Pro: Puts running process into background, and if you quit out of the shell it still runs
Con: Costs a pinch of more memory (a negligiable amount) – I couldnt think of any cons so I had to mention this 🙂

Reference: http://stackoverflow.com/questions/625409/how-do-i-put-an-already-running-process-under-nohup

Using the Job Control of bash to send the process into the background:

0. Run some SOMECOMMAND
1. ctrl+z to stop (pause) the program and get back to the shell
2. bg to run it in the background
3. disown -h so that the process isn’t killed when the terminal closes
4. Type exit to get out of the shell because now your good to go as the operation will run in the background in it own process so its not tied to a shell

This process is the equivalent of running nohup SOMECOMMAND

Quelle:https://sites.google.com/a/kossboss.com/main/linux—move-running-to-process-nohup