Tclcron - Tcl scheduling package
Overview

Tclcron is a package that allows scheduling commands to be run at specific times or intervals. It uses Tcl's very powerful clock command as a basic of most operations and hides most of the internals from the developer. It uses Tcl's event loop so can be easily integrated with most applications.

The simplest example is as follows:

# schedule a log roll every 3 o' clock in the morning
tclcron::schedule audit::logloll every 03:00

Code to do some cleanups every 15 minutes.

# clean up every 15 minutes
tclcron::schedule cleanupIdleConnections every 15 minutes

Tclcron's manual page covers more complex scenarios.

© 2002-2006 Data Quest and
Wojciech Kocjan.
All rights reserverd.