I need to start a (sub)process from inside a ruby script that will
to run after the ruby script itself has finished.
The way I’m doing stuff right now is by using Process.spawn - this
however the ppid of the child process is assigned to the script that was
used to start the process, and thus after the script finishes the
(child) processes gets closed as well.
My question is what would be the best way to start such a (sub)process
assign it a parent in such a way that it keeps running even after the
current script has ended? As a side-note, I also need to be able to
the stderr and assign it to a specific file (which works using
Process.spawn), but I’m not sure about the other methods.
I have to mention I’m using a linux machine but I’m unfortunately not
familiar with the way linux process exactly work…