Server Info

Mem info

CPU info

CGI Vars

Generated by: /home/gemini/content/cgi-bin/serverinfo

#!/bin/bash

MEMINFO=$(cat /proc/meminfo|grep Mem)
CPUINFO=$(cat /proc/cpuinfo |egrep 'vendor|MHz|model name|cache size')

echo -ne "20 text/gemini\r\n"

cat <<EOGEMINI
# Server Info

## Mem info
${MEMINFO}

## CPU info
${CPUINFO}

## CGI Vars




### Generated by: ${0}
EOGEMINI

echo '```'
cat ${0}
echo '```'