![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to generate html file using script? | kittusri9 | Shell Programming and Scripting | 2 | 05-25-2008 11:38 PM |
| cgi script to echo a html file | Performer | Shell Programming and Scripting | 1 | 04-01-2008 06:16 AM |
| Unix Shell Script along with .HTML | ronix007 | UNIX for Dummies Questions & Answers | 3 | 01-07-2008 09:15 AM |
| how to Invoke html in ksh Script | ali560045 | Shell Programming and Scripting | 4 | 11-30-2007 01:28 AM |
| Converting Shell Script to HTML | davwel | Shell Programming and Scripting | 3 | 10-25-2007 10:25 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
html - df -k cgi script
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-- |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|