Manage a generic OS process using Erlang