webui-new/development/simpleadmin/www/cgi-bin/get_uptime

12 lines
214 B
Plaintext
Raw Normal View History

2025-03-24 22:39:52 +08:00
#!/bin/bash
# Execute the uptime command and store the result
uptime_output=$(uptime)
# Set header for plain text content
echo "Content-Type: text/plain"
echo ""
# Output the uptime result
echo "$uptime_output"