How to use cgi script to check the Server uptime .

The following script you can use to check the Server uptime?

[email protected][/usr/local/apache/cgi-bin]# nano loads
#!/bin/bash

echo Content-type: text/plain
echo

echo $(hostname)
echo “=>”
echo $(uptime)


Subscribe Now to stay updated.

Please fill in your email address to get most latest updates.