supervising unix processes

Mats Cronqvist <>
Fri Aug 26 08:58:09 CEST 2005


   perhaps start the C++ program from erlang;
    Port = open_port({spawn,make_cmd(Name)},[stderr_to_stdout,exit_status]).

  you'll get messages like these;
	{Port,{data,PortData}} ->		%from stdout/stderr
	{'EXIT',Port,_Reason} ->		%port program died

   mats

Dietmar Schaefer wrote:
> Hi !
> 
> 
> If I have a system which consist of erlang and C++ how could it be 
> possible to supervise the unix (C++)
> processes from within erlang.
> 
> The communication will be done using epi (erlang messages) or maybe UBF 
> is the better way ?
> 
> 
> regards
> 
> 
> Dietmar



More information about the erlang-questions mailing list