sysinfo.sh 347 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/ash
  2. echo -e "Content-type: text/html\n"
  3. echo -e "<!doctype html><html>
  4. <head>
  5. <title>Superglue test</title>
  6. <style>body { font-family: monospace; white-space: pre;}</style>
  7. </head>
  8. <body>
  9. <h2>Superglue test server</h2>
  10. $(uptime)
  11. $(head -n5 /proc/cpuinfo)
  12. $(free)
  13. $(df -h)
  14. $(env)
  15. $(echo $PATH)
  16. $(echo $USER)
  17. </body></html>"
  18. exit 0