spawn a process and make simple communication