passing a block to guest.exec() processes output lines