home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
httpd-rb.zip
/
httpd-rb.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-10-12
|
888b
|
25 lines
/*******************************
* Rolf Breuning, 1999/09/05
* Java Http Server start script for OS/2
*******************************
* Precondition:
* Your java environment should be available on the path.
* I.e. executing jre.exe on the command line should display
* JRE version and options
*******************************
* Settings start:
*******************************/
parse source . . cmd; cmdDir = left( cmd, lastpos( '\', cmd ) - 1 )
/* The full path name of the server directory, excluding the trailing '\' */
servDir = cmdDir
/* Port number for the server */
servPort = 8081
/*******************************
* Settings end
*******************************/
cp = servDir'/httpd.jar;'servDir'/collections.jar;'servDir'/collecti.jar'
'jre -cp 'cp' -Drb.httpd.directory='servDir' -Drb.log.file='servDir'/httpd.log rb.httpd.HttpServer 'servPort