#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>


int main(int argc, char *argv[]) {
	int input;
	printf("Hello, I am fork1\n");
	pid_t childpid = fork();
	if (childpid == 0) {
		printf("I am the child\n");
		// execl("/bin/ls", "fork1", "/bin", NULL);
		scanf("%d", input);
		printf("After exec");
	} else {
		printf("I am the parent, the childs's pid was:%d\n", childpid);
		wait(childpid);
	}
	
	
}

