Execute a process on background
Call and execute a thask in a background process in a Ruby file that not stop the currect task.
code:
The currect Ruby process will not wait for the new process response, that will output the response in the "output" files.
pid = spawn("/var/www/vhosts/mydomain.com/bin/worker.rb", :out => "worker.out", :err => "worker.err") Process.detach(pid)