quectel-webui/simpleadmin/www/cgi-bin/get_uptime
2024-12-06 23:04:26 +08:00

12 lines
214 B
Bash

#!/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"