Toolserver:Tcl

Database Access
MySQL access is provided by the mysqltcl package.

If you run scripts manually/via cron then mysqltcl uses your .my.cnf directly. If you use mysql inside a web tool, you have to provide the password manually:

FastCGI
The following example shows how to use Tcl with FastCGI. For HTML output you can use the packages cgi or htmlgen.

To prevent MySQL connections from being opened and closed repeatedly inside the while loop, make the database handle variable global:

Installing packages locally
If you must install packages locally (package is too specialized or you don't want to wait it to be available), you must provide a path to the package location, i.e. the direct parent directory of the directory containing the pkgIndex.tcl file.

Say you installed package foo into ~/foo and write a script in ~/public_html: