Wiki
Download
Manual
Eggs
API
Tests
Bugs
show
edit
history
You can edit this page using
wiki syntax
for markup.
Article contents:
== Outdated egg! This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for [[/eggref/5/scron|the CHICKEN 5 version of this egg]], if it exists. If it does not exist, there may be equivalent functionality provided by another egg; have a look at the [[https://wiki.call-cc.org/chicken-projects/egg-index-5.html|egg index]]. Otherwise, please consider porting this egg to the current version of CHICKEN. [[tags: egg scron]] == scron [[toc:]] === Introduction scron is a very simplified cron-like program which executes Scheme jobs. === Author [[http://www.ossystems.com.br|O.S. Systems]], maintained by [[/users/mario-domenech-goulart|Mario Domenech Goulart]] === Usage $ scron -h Usage: scron <basedir> {{<basedir>}} is the directory where the time-interval tree of "scrontab" files can be found (files whose extension is {{scm}}). The time-interval directory indicates the interval between two consecutive scron runs in seconds. So, for example, if the time-interval directory is {{5}}, scron will run the scrontab files in that directory in 5 seconds intervals. Example: $ ls -l scron/ total 0 drwxr-xr-x 2 mario mario 48 Fev 13 09:11 5 $ ls -l scron/5/ total 4 -rw-r--r-- 1 mario mario 189 Fev 13 09:16 hello.scm $ cat scron/5/hello.scm (use posix) (with-output-to-file (make-absolute-pathname "tmp" "hello.log") (lambda () (print "Hello! It's " (time->string (seconds->local-time (current-seconds))))) append:) $ scron scron & That'd generate a {{/tmp/hello.log}} file with a "Hello! It's <time>" line for each 5 seconds interval. === License BSD === Version history ==== Version 0.2 * Fixed sample init script ==== Version 0.1 * Initial release
Description of your changes:
I would like to authenticate
Authentication
Username:
Password:
Spam control
What do you get when you add 11 to 7?