Analyst the generated file1 to file5 for the polling then create a parent batch sh that will call the 5 polling sh and also add sed -i '$ s/&/ /'  to remove the & on the last line then process, test and add to cron