Split HRPT script into live receive and post-processing