Im facing a small dilema trying to start a process called “ezstream”
from inside a ruby on rails application and retreive its PID.
Ezstream is used for streaming audio into an icecast server so normally
this process runs in background for a long time. I tried it with
IO.popen but then the application hangs indefinitely. What I need to do
is start the app, get its PID(to store it in a databasse), and move it
to the background so the rails application doesnt hang.