This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Using 'set {my-var}' prob

Help for those learning Tcl or writing their own scripts.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

logzipper script update

Post by rosc2112 »

I did a little debugging on the logzipper tcl script, and didn't find any probs with my copy, so I can only assume the copy Zircon has was perhaps an old version with some error in how files were named. In any case, I put an updated copy here:

http://members.dandy.net/~fbn/logzipper.tcl.txt

This version uses bzip2 and the mail part does work. I also added notes about the config from the original readme, since that part of the script is a little obscure. You have to specify the user@emailaddress and then the logfile names as written in your eggdrop.conf for your channels and whatever else you have for logfiles, that way each recipient can be sent specific logs. For example, in my config I use:

logfile bcmoswx * "logs/eggdrop_bot.log"
logfile jkp #mychan"logs/mychan_pub.log"
logfile jkp #funo "logs/funo_pub.log"
logfile jkp #friends "logs/friends_pub.log"

So in logzipper's file, if I only wanted to send the eggdrop_bot.log to specific people, I'd use like:

set lz_recipient(1) "admin@mail eggdrop_bot.log"

Then to send other logs to someone else:

set lz_recipient(2) "channelop@mailaddress channelname.log channel2.log"
set lz_recipient(3) "anotherop@localhost eggdrop_bot.log channel2.log"

and so on..

Hope that clarifies the issue and fixes your mailing prob.
Post Reply