Write data in a separate process