transfer input to the child process