uptime
#!/bin/bash
echo Content-type: text/plain
echo
/usr/bin/uptime
echo Content-type: text/plain
echo
/usr/bin/uptime
Or you can expand this a little
#!/bin/bash
UPTIME=/usr/bin/uptimeecho Content-type: text/plain
echo
if [ -x $UPTIME ]; then
$UPTIME
else
echo Cannot find uptime command on this system.
fi
No comments:
Post a Comment