home *** CD-ROM | disk | FTP | other *** search
/ The HTML Web Publisher's Construction Kit / HTMLWPCK.ISO / unix / cgi / 15_3.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1995-07-11  |  366 b   |  31 lines

  1. #! /bin/sh
  2.  
  3. echo Content-Type: text/html
  4.  
  5. echo
  6.  
  7. echo "<TITLE>Echoname example</TITLE>"
  8.  
  9. echo "<ISINDEX>"
  10.  
  11. echo "<H1>CGI script example</H1>"
  12.  
  13. echo Any name typed into the query window will be echoed to the 
  14.  
  15. screen.
  16.  
  17. echo "<HR>"
  18.  
  19. if [ $# = 0 ]; then
  20.  
  21.     echo Please enter your name in the query window.\<BR\>
  22.  
  23. else
  24.  
  25.     echo Hello $*, Welcome to our server.\<BR\>
  26.  
  27. fi
  28.  
  29.  
  30.  
  31.