in reply to console output invisible after script exit

Rather than managing the forking etc yourself, consider using Parallel::ForkManager?
  • Comment on Re: console output invisible after script exit