home *** CD-ROM | disk | FTP | other *** search
/ The HTML Web Publisher's Construction Kit / HTMLWPCK.ISO / unix / cgi / 15_4.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1995-07-11  |  389 b   |  33 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 $* from $REMOTE_HOST, Welcome to \
  26.  
  27.     $SERVER_NAME.\<BR\>
  28.  
  29. fi
  30.  
  31.  
  32.  
  33.