(type egg)
(signature "scron egg")
(timestamp 1612269487)
(sxml ((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/scron" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "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")) (section 2 "scron " (toc) (section 3 "Introduction" (p "scron is a very simplified cron-like program which executes Scheme jobs.")) (section 3 "Author" (p (link "http://www.ossystems.com.br" "O.S. Systems") ", maintained by " (int-link "/users/mario-domenech-goulart" "Mario Domenech Goulart"))) (section 3 "Usage" (pre " $ scron -h\n Usage: scron <basedir>") (p (tt "<basedir>") " is the directory where the time-interval tree of \"scrontab\" files can be found (files whose extension is " (tt "scm") ").  The time-interval directory indicates the interval between two consecutive scron runs in seconds.  So, for example, if the time-interval directory is " (tt "5") ", scron will run the scrontab files in that directory in 5 seconds intervals.") (p "Example:") (pre " $ ls -l scron/\n total 0\n drwxr-xr-x 2 mario mario 48 Fev 13 09:11 5\n \n $ ls -l scron/5/\n total 4\n -rw-r--r-- 1 mario mario 189 Fev 13 09:16 hello.scm\n \n $ cat scron/5/hello.scm \n (use posix)\n \n (with-output-to-file (make-absolute-pathname \"tmp\" \"hello.log\")\n   (lambda ()\n     (print \"Hello!  It's \"\n            (time->string (seconds->local-time (current-seconds)))))\n   append:)\n \n \n $ scron scron &") (p "That'd generate a " (tt "/tmp/hello.log") " file with a \"Hello! It's <time>\" line for each 5 seconds interval.")) (section 3 "License" (p "BSD")) (section 3 "Version history" (section 4 "Version 0.2" (ul (li "Fixed sample init script"))) (section 4 "Version 0.1" (ul (li "Initial release")))))))
