Jump to content

Template:Networking rut2 9 modbus custom register block: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 28: Line 28:
|RUTX10=
|RUTX10=
<pre>
<pre>
#!/bin/ash
#!/bin/ash
while true
while true
do
do
date > /tmp/regfile  #where data will be stored
date > /tmp/regfile  #where data will be stored
df {{!}} awk 'NR==3 {print $3}' >> /tmp/regfile
df {{!}} awk 'NR==3 {print $3}' >> /tmp/regfile
df {{!}} awk 'NR==4 {print $3}' >> /tmp/regfile
df {{!}} awk 'NR==4 {print $3}' >> /tmp/regfile
sleep 5
sleep 5
done
done
</pre>
</pre>
|RUTX08=
|RUTX08=
<pre>
<pre>
#!/bin/ash
#!/bin/ash
while true
while true
do
do
date > /tmp/regfile  #where data will be stored
date > /tmp/regfile  #where data will be stored
df {{!}} awk 'NR==3 {print $3}' >> /tmp/regfile
df {{!}} awk 'NR==3 {print $3}' >> /tmp/regfile
df {{!}} awk 'NR==4 {print $3}' >> /tmp/regfile
df {{!}} awk 'NR==4 {print $3}' >> /tmp/regfile
sleep 5
sleep 5
done
done
</pre>
</pre>
|
|
Line 76: Line 76:
{{#switch:{{{name}}}
{{#switch:{{{name}}}
|RUTX10=  
|RUTX10=  
Wed Jun 17 15:11:29 EEST 2020
<pre>
69
Wed Jun 17 15:11:29 EEST 2020
27
69
27
</pre>
|RUTX08=
|RUTX08=
Wed Jun 17 15:11:29 EEST 2020
<pre>
69
Wed Jun 17 15:11:29 EEST 2020
27
69
27
</pre>
|
|
Wed Jun 17 15:11:29 EEST 2020
<pre>
-69
Wed Jun 17 15:11:29 EEST 2020
27
-69
27
</pre>
}}
}}