guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ttn-pers-scheme 0.08 available


From: thi
Subject: ttn-pers-scheme 0.08 available
Date: Fri, 5 Jan 2001 18:34:55 -0800

please see:

  http://www.glug.org/people/ttn/software/ttn-pers-scheme/

for tarball and related files.  news excerpt follows.  ah, automation....

thi


___________________________________________
- VERSION 0.08 (released 2001/01/05)

  - New module: (ttn cron) --- Provide cron-compatible framework

        This file exports `cron', a macro that has signature:
        (cron CMDLINE-LIST . HANDLERS)

        CMDLINE-LIST is a two-element list, of the form:
        (PROG-NAME COMMAND)

        HANDLERS is zero or more forms:
        ((KEY) (BODY1) (BODY2) ...)

        BODY1, BODY2 and so on are optional.  KEY is a symbol or string.
        The body forms for a KEY are executed if COMMAND matches KEY.
        If CMDLINE-LIST does not have exactly two elements, a usage message
        is displayed and a "bad usage" error is signalled.  If COMMAND
        matches no key, `cron' silently returns #f, otherwise, the return
        value is the value of the last body form executed.

        Example:
        #!/usr/local/bin/guile -s
        !#
        (cron (command-line)
              ((hourly) (write-line "yawn, stretch"))
              ((daily)  (write-line "zonk")))

        See also link at end of http://www.glug.org/projects/wurlds.html
        for example usage.

[NEWS excerpt ends here]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]