from=42000 to=43695 soubor=index.html; system=Devices/AVs/PhotronMiniUX100-a/ url=https://golem.fjfi.cvut.cz/shots/ #url=/shots echo "<html><body>" > $soubor; for i in `seq $from $to`; do echo -ne '*'$i:; if [[ -e "/golem/database/operation/shots/$i/$system/ScreenShotAll.png" ]] && [[ $(< /golem/shots/$i/Diagnostics/PlasmaDetection/Results/b_plasma) != "0.000" ]]; then echo -ne yes';' echo " <a href=$url/$i/$system/ScreenShotAll.png><img src=$url/$i/$system/rawdata.jpg></a> " >> $soubor; else echo -ne no';';fi;done echo "<hr/><pre> `cat script.bash|sed 's/</\</g'|sed 's/>/\>/g'` </pre></body></html>" >> $soubor; exit echo "<html><body><table>" > $soubor; for i in `seq $from $to`; do echo -ne '*'$i:; if [[ -e "/golem/database/operation/shots/$i/$system/ScreenShotAll.png" ]] && [[ $(< /golem/shots/$i/Diagnostics/PlasmaDetection/Results/b_plasma) != "0.000" ]]; then echo -ne yes';' echo "<tr> <td><a href=$url/$i>$i</a><br>`cat /golem/database/operation/shots/$i/shot_date`<br>`cat /golem/database/operation/shots/$i/shot_time`</td> <td><img src=$url/$i/Diagnostics/BasicDiagnostics/graph.png></td> <td><img src=$url/$i/$system/rawdata.jpg><br/><center><a href=$url/$i/$system/ScreenShotAll.png>data</a></center></td> </tr>" >> $soubor; else echo -ne no';';fi;done echo "</table><hr/><pre> `cat script.bash|sed 's/</\</g'|sed 's/>/\>/g'` </pre></body></html>" >> $soubor; http://golem.fjfi.cvut.cz/shots/43706/Devices/AVs/PhotronMiniUX100-a/rawdata.jpg