40001
22-11-09
16:19:54
40002
22-11-09
16:23:00
40003
22-11-09
16:26:20
40004
22-11-09
16:33:05
40005
22-11-09
16:38:09
40006
22-11-09
16:51:24
40007
22-11-09
16:59:44
40008
22-11-09
17:03:43
40009
22-11-09
17:16:49
40011
22-11-09
17:25:48
40012
22-11-09
17:28:58
40013
22-11-10
16:33:25
40014
22-11-10
16:53:23
40015
22-11-10
17:08:40
40017
22-11-10
17:49:48
40018
22-11-10
17:58:22
40019
22-11-10
18:05:56
40020
22-11-10
18:13:05
40021
22-11-10
18:19:14
40022
22-11-10
18:28:56
40023
22-11-10
18:32:08
40024
22-11-10
19:05:46
40025
22-11-10
19:11:01
40026
22-11-10
19:19:18
40027
22-11-10
19:25:08
40028
22-11-10
19:30:46
40029
22-11-10
19:36:14
40030
22-11-10
19:42:44
40031
22-11-10
20:02:35
40032
22-11-10
20:06:01

from=40000
to=40100
soubor=index.html; 
diag=Diagnostics/LimiterMirnovCoils
url=https://golem.fjfi.cvut.cz/shots/
#url=/shots

echo "<html><body><table>" > $soubor;

for i in `seq $from $to`; do echo -ne '*'$i:; 
if [[ -d "/golem/database/operation/shots/$i/$diag" ]] && [[ $(< /golem/shots/$i/Diagnostics/BasicDiagnostics/Results/is_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/$diag/graph.png></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;