Code: Select all
<fieldset id="up_time" style="display:block">
<legend class="sectionheader">Uptime</legend>
<div class="nocolumn" id="up_time"><% echo "$(uptime | awk -F'( |,|:)+' '{print $6,$7",",$8,"hours,",$9,"minutes."}')" %></div>
</fieldset>
It puts uptime in a variable and then it magically turns into output. Can anyone tell me where the logic is?
Code: Select all
echo "var uptime=\"$(cat /proc/uptime)\";"
<div>
<span class='leftcolumn'><%~ Uptm %>:</span><span id="uptime" class='rightcolumn'></span>
</div>