aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi-bin/top.sh
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2018-07-03 01:29:22 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2018-07-03 01:29:22 +0300
commitf71638271a197927660e955a0b53c9deff2d757d (patch)
tree089b842a7a69a12fab9123b0df0110fdf14e0763 /cgi-bin/top.sh
downloadlinux-status-f71638271a197927660e955a0b53c9deff2d757d.tar.gz
linux-status-f71638271a197927660e955a0b53c9deff2d757d.zip
initial commit
Diffstat (limited to 'cgi-bin/top.sh')
-rwxr-xr-xcgi-bin/top.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/cgi-bin/top.sh b/cgi-bin/top.sh
new file mode 100755
index 0000000..630afff
--- /dev/null
+++ b/cgi-bin/top.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+set -o errexit -o nounset -o pipefail
+
+echo 'Content-Type: text/plain; charset=utf-8'
+echo
+
+top -b -n 1