Re: swcron
Jacob Smullyan <[email protected]>
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Mar 01, 2004 at 11:05:02AM -0800, Drew Csillag wrote: > Is there any documentation on using swcron outside of the source > code? Specifically, the format of the CronLogger and CronJobs > configuration variables... At the moment, no. This is mostly out of laziness, but partially because I came to think that swcron was sort of pointless, more or less immediately after writing it. You need to start a separate process to run the crons anyway, and swpython can now be used, thanks to you, Drew, in the shebangs of scripts -- so swcron doesn't give you that much extra, except the ability to configure jobs in the midst of your skunkweb configuration. Also it is possible for a service to add a cron job -- but I'm not sure whether you'd want to do that anyway. That doesn't mean it is useless or shouldn't be documented. The cronjob pylib actually has better docstrings than I usually am responsible for. Brian O. and I started doing a bit of work on the manual last week and I'll try to set aside time every week until we have something up-to-date and adequate, if not comprehensive. For the record, CronJobs should be a list of cronjob.CronJobs. A CronJob is a wrapper around a callable thing that includes timing information. You probably want to produce one with the "from_spec" class method; see the docstrings for details. CronLogger handles the output and error streams of running the job; the one configured by default (defined in the cron service) sends email, and you can stick to- and fro- addresses in it. That's all there is to know. j > > TIA, > Drew > > __________________________________ > Do you Yahoo!? > Get better spam protection with Yahoo! Mail. > http://antispam.yahoo.com/tools > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Skunkweb-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/skunkweb-list >
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAQ5JAuqamFyFXXLIRAnnTAKCof4icXHoprQ/kumwYOlqQqnLj+gCeKTsS sNT6x5a9jt7zB8Dk0VEt700= =ISS6 -----END PGP SIGNATURE-----