quectel-webui/simpleadmin/www/cgi-bin/get_uptime

12 lines
214 B
Plaintext
Raw Normal View History

2024-12-06 23:04:26 +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"