<%include file="/pageheader.html"/>
<%
import subprocess
from kaithem.src import util
%>
<style>
    main{
        min-width: min-content;
    }
</style>
<h1>Running Proceses</h1>
%if util.which("top"):
<div class="window paper">
<pre>
${subprocess.check_output("top -b -n 1", shell=True).decode()}
</pre>
%else:
<p class="danger">Program "top" not installed.</p>
%endif
</div>
<%include file="/pagefooter.html"/>