title: How to run a executable file in c++ in Linux?
body: <p>I am trying to run an executable file within a c++ code. It compiles and run, but it displays a message "permission denied". This same code works on windows, I just use the appropriate file path. </p>
  
  <p>Here is the code I am using </p>
  
  <pre><code>FILE *fp = popen("/home/Int_Outputs/bin/Debug","r");
  if (fp == NULL){
  std::cout &lt;&lt;"Popen is null" &lt;&lt; std::endl;
  }
  char buff[50];
  fgets(buff,sizeof(buff),fp);
  std::cout &lt;&lt; buff;
  }
  return 0;
  } 
  </code></pre>