fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(void)
  6. {
  7. cout << "Hello world" << std::endl;
  8. execl("/bin/ls","ls",NULL);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0.02s 4024KB
stdin
Standard input is empty
stdout
Hello world
prog