Hey - I am new to cgi scripting... just writing a script to output df -k output to html page... but I cannot get the df lines on separate lines on the page, it all comes out on one line and is not very readable.. any suggestions?
My script is below - please keep in mind I am only new to it so its probably a bit messy
#!/usr/bin/sh
UNAME=`uname -n`
DSPA=`df -k`
cat <<"--END--"
Content-type: text/html
<html>
<head><title>Test Page</title></head>
<body bgcolor="#ffffff">
<font face="helvetica">
--END--
echo "<h2>Welcome to $SERVER_NAME"
cat <<"--END--"
<hr size=1 noshade></h2>
<p>
--END--
echo "<font size=\+2\">Server physical host is $UNAME </font>"
echo "<font size=\+2\">Disk Space: $DSPA</font>"
cat <<"--END--"
<p>
<hr size=1 noshade>
</font>
</body>
</html>
--END--