#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>

int main(int argc, char * argv[]){
	pid_t childpid;

	childpid = fork();

	if (childpid == 0)
	{
		system("/bin/echo -n 'Dzisiaj mamy: '");
	} else {
		waitpid(childpid, NULL, 0);
		system("/bin/date");
	}
	return 0;
}

