shell script to create html pages with one share each plus automated recovery