I'm trying to do is create a new process, from within bash, like nothing ever happened, except my terminal is on the next line, where that process would normally steal my stdout...Let's say I want to apt-get update right now, but i want to edit some configuration files instead of watching everything download, so I want to run vi /some/config. I should be able to do both at once, right?Just to clarify, because i did a bit of reading before asking, I want this process to survive past the closing of the terminal [if it has not yet come to its end] so i guess that's not a child process, probably not a sub-shell, maybe a fork? Is fork what I mean? How do I fork like this?
How can I run a program from bash ignoring its stdout so i can run more programs?
bash;shell;terminal;background process;process management
I believe you are looking for the setsid command which starts a program in a new session. So you can:setsid apt-get updateAnd, if you want the apt-get update to be silent:setsid apt-get update >/dev/null 2>&1The good thing with setsid is that the process started this way will continue after the terminal closes.