Is it a parent process or a child process
pid = fork if (pid) puts "Hello from parent process: #$$" puts "Created child process #{pid}" else puts "Hello from child process: #$$" end