flush the output regularly (work with pipes & stream)