You are of course right.
If i want to run pisg once a day at 23:59 , how will the crontab look like?
My crontab as it is now on the shell:
0 1 * * * * /home/tessa/pisg-0.67/pisg --silent
And it dont work.
While rehashing the bot after installing the script: (miki)
[16:36] Tcl error in file 'miki.conf':
[16:36] invalid command name "statsbin="./pisg""
while executing
"statsbin="./pisg" "
(file "scripts/statcron.tcl" line 3)
invoked from within
"source scripts/statcron.tcl"
(file "miki.conf" line 1368)
[16:36] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
What is statcron.tcl? What I posted has nothing to do with any TCL scripts. My post simply shows how to execute pisg once per day (and it works *if* pisg & pisgchek are located in the same dir).
NB: My "script" cannot be loaded/run by eggdrop.
Add [SOLVED] to the thread title if your issue has been. Search | FAQ | RTM
I think you misunderstand what pisg actually is. pisg is a Perl IRC Statistics Generator that uses eggdrops' logs to create an index.html making it available via the WWW. eggdrop has nothing to do with pisg other than the fact that the generated log files are read by pisg.
For the whole thing to work you also need Apache running on your account and it's preferable you pop the pisg files into a public_html folder.
The following settings are also needed in your bots' conf:
set max-logs 365
set max-logsize 0
set quick-logs 0
set raw-log 0
logfile mco * "logs/miki.log"
logfile jpk #Channel "stats/channel.log"
# Use this feature to timestamp entries in the log file.
set log-time 1
# If you want to keep your logfiles forever, turn this setting on. All
set keep-all-logs 1
Notice that I created a directory called 'stats' and have all the logs to be used by pisg stored in it; keeps it separate from the normal bot logs.
Unfortunately my shellaccount have been closed because someone
on the forum has tryed to "hack" my account. Heh.
I didnt think any user on this forum even did care about logging
in to my account.
(And yes, I DID learn something. Never post login information on a forum)