#include #include #include using namespace std; int main(){ cout << "This is the process with ID " << getpid() << ", before the exec." << endl; execl("/bin/ps", "ps", "axl", NULL); perror("error execing ps"); return -1; }