Made a child process file. this file will be used for child 1-4. child 5 will be a function of cmd.