Doktor J Voice
Joined: 16 Oct 2012 Posts: 1
|
Posted: Tue Oct 16, 2012 11:13 am Post subject: issue with "bind cron" on eggdrop 1.8 |
|
|
Hi, I'm running eggdrop v1.8.0+stripmoar, and all has been going well for me... until I decided to make a cron bind.
The bind itself seems to work fine:
| Code: | | bind cron - {* * * * *} brick:cron |
(Yes, I want it running every minute; it will be doing various things based on various combinations of time and day)
However, the proc is giving me weird results. My test proc looks like so:
| Code: | proc brick:cron {min hr day mo yr} {
putlog "${hr}:${min} ${mo}.${day} ${yr}"
} |
but the output is like so:
10:33 10.16 02
Why is the year showing up as "02"? My server's date command returns "Tue Oct 16 10:33:42 EDT 2012", so that's definitely not the year (unless it's giving me only the century portion, reversed o_O).
What makes this more confusing is that the documentation I found at http://www.eggheads.org/support/egghtml/1.6.20/tcl-commands.html#binda_cron shows the syntax as
| Code: | | proc-name <minute> <hour> <day> <weekday> <year> |
but "10" obviously isn't a weekday, and looks like the month instead... and "02" doesn't appear to be the year. Is it calling the proc with {minute hour day month weekday} or something screwy like that? How would I get the year then?
Thanks! |
|