#include <iostream>
#include <sys/types.h>
#include <unistd.h>
using namespace std;
int main()
{
pid_t pid = fork();
if(pid>0)
{
cout<<"this is father process"<<endl;
}
else if(pid == 0)
{
cout<<"this is son process"<<endl;
execl("/mnt/cy/test","test",NULL);
}
}