home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / httpd-rb.zip / httpd-rb.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1999-09-26  |  854b  |  29 lines

  1. #!/bin/sh
  2. ###############################
  3. # Rolf Breuning, 1999/09/05
  4. # Java Http Server start script for UNIX
  5. # To let the server continue execution after logout, use e.g.
  6. #    nohup sh <full path of this script>
  7. ###############################
  8. # Precondition: 
  9. #   Your java environment should be available on the path.
  10. #   I.e. executing jre.exe on the command line should display
  11. #   JRE version and options
  12. ###############################
  13. # Settings start: 
  14. ###############################
  15.  
  16. # Directory for the address file and the .jar files
  17. servDir=/home/rolf/httpd-rb
  18.  
  19. # Port number for the server
  20. servPort=8081
  21.  
  22.  
  23. ###############################
  24. # Settings end
  25. ###############################
  26. cp=$servDir/httpd.jar:$servDir/collections.jar
  27. jre -cp $cp -Drb.httpd.directory=$servDir -Drb.log.file=$servDir/httpd.log rb.httpd.HttpServer $servPort
  28.  
  29.