use a stamp file to know if the script finished