title: How to write a parent program that is using other C programs?
body: <p>I am making a can-bus network that will survey some sensors to gather data in order to have better understanding of an environment that we want to analyse and control. In order to do so we use candump to monitor traffic and can send to sen information (from CAN-BUS files that can be find in this address: <a href="https://github.com/linux-can/can-utils.git" rel="nofollow noreferrer">https://github.com/linux-can/can-utils.git</a>). I modified some of the codes and they compile well, now what I want to do is to make a parent code that can orchestrate this C programs in order to control the environment. I want to use python or c++ to do this.</p>
  
  <p>Example Algorithm</p>
  
  <pre><code>while(sys == on){
  
  if (everything is in place &amp;&amp; security) then 
  {candump -l -t -n nb_of_max_cycle can0} 
  else { puts("error")}
  
  if (user_id == permited_id &amp;&amp; authentification) then 
  { cansend can0 tram=[hexID_arbitration+data] }
  else { puts("denied") }
  
  }
  </code></pre>
  
  <p>Thanks beforehand for all type of suggestions.</p>
  
  <p>I have tried to work with a IDE but I can't compile anything because the makefile that is used is specificly made for can programs with the iso standarts for CANBUS. </p>
  
  <p>I want to call and put or get basic info with c functions like I am on a terminal with this code. </p>