12 lines
214 B
Plaintext
12 lines
214 B
Plaintext
|
|
#!/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"
|