Neowebscript is an easy to learn, powerful, TCL-based
web scripting language originally developed by Neosoft for use on FreeBSD, a
flavor of Unix, and later ported to Linux, SCO Unix, and several other flavors
of *nix. Neosoft was “absorbed” by Internet America and is no more, but
Neowebscript lives on as an independent web scripting language. Neowebscript is
now a SourceForge project.
Neowebscript-i is a rough port of Neowebscript
designed to allow Neowebscript-based websites and web applications to run on
Internet Information Server (the web server included with Windows 2000 / 2003
Server).
Neowebscript-i is not affiliated with the main Neowebscript project, but seeks to
maintain script compatibility with it to allow sites to be moved from running
on Neowebscript to running on Neowebscript-i, and vice versa.
1.
Install
Active TCL 8.4.4 or higher for Windows (it's free! go to activestate.com, go to Downloads ...), for all users, to c:\tcl
2.
Extract
the tcl-neowebscript.zip file to c:\tcl-neowebscript
3.
Run
programs > tools > internet services manager
4.
Right-click
the name of your server and choose new > web site
5.
Click
next
6.
Type a
description for the neowebscript website (such as "neowebscript" or
"mysite") and click next
7.
If
applicable, indicate an ip address and tcp port (normally just leave these on
their default settings)
8.
Type a
host header. e.g. www.yoursite.com. (If you just want to test how
Neowebscript-i works, type nws.localhost as the host header)
9.
Click
next and type c:\tcl-web\yourappfolder for the path.
10.
Click next
and select to allow read, run, execute, and write (and you can select browse if
you want visitors to be able to list the contents of any directory in your
website that does not have an index file)
11.
Click
"yes" on the danger warning (it's OK ... only items in the tcl-web
directory will be allowed to execute, and this must be allowed for scripts to
run and data to be stored)
12.
Click
finish to close the wizard
13.
Right
click the site you just created (such as "neowebscript" or
"mysite") and choose Properties
14.
Click
the Home Directory tab
15.
Click
the Configuration button
16. Click the Add button
17.
For
the executable, type C:\Tcl\bin\tclsh.exe
"c:\tcl-neowebscript\neowebscript.tsh" "%s" yourappname
18.
Checkmark
the "check that file exists" option
19.
For
the extension, type htm
20.
Click OK
21. Click the Add button
22.
For
the executable, type C:\Tcl\bin\tclsh.exe
"c:\tcl-neowebscript\neowebscript.tsh" "%s" yourappname
23.
Checkmark
the "check that file exists" option
24.
For
the extension, type nws
25.
Click OK
26. Click the Add button
27.
For
the executable, type
C:\Tcl\bin\tclsh.exe
"c:\tcl-neowebscript\gd\gd.tsh" "%s"
Note:
Neowebscript-i automatically adds an “i” to the end of any .gd file referenced,
to read the iis version of the gd script, which uses newer GD commands than the
original version of GD typically packaged with Neowebscript. In other words if
the server is asked for test.gd it will actually read test.gdi.
28.
Do not
checkmark the "check that file exists" option
29.
For
the extension, type gd
30.
Click OK
31.
Click OK
32.
Click OK
33.
If you
are just testing how Neowebscript works, add an entry to the hosts file in
c:\winnt\system32\drivers\etc: nws.localhost 127.0.0.1
34.
Copy
the nws-test.htm file from c:\tcl-neowebscript to c:\tcl-web\yourappfolder
35.
To
test your server, run IE and go to http://nws.localhost/nws-test.htm (for this to work, you must have added
an entry for nws.localhost to your hosts file and you must have typed
nws.localhost as the host header when setting up the website in IIS).
36.
If
it's working you should see a test page with some variables shown and a simple
page counter at the bottom.