I'm hosting an eggdrop on my computer for a friend and using pisg 0.56 to generate nice stats for it, which works great. As far as I know, everything is configured correctly because I can view the generated stats (by both calling pisg and running the public egg trigger), however, the script does not upload the generated stats page to my remote server, as it says it should.
Now, I did modify the script a bit because I wanted the generated file to read as index.html, rather than channel.html, but I don't know if I did that correctly. Below is the (very small) section of the pisg config file, as well as the ftp info and the section I changed. Any help would be greatly appreciated.
pisg.cfg:
Code: Select all
<channel="#|ronin|">
LogDir="/home/crimson/MrRoboto/logs/ronin/"
Format="eggdrop"
OutputFile="/home/crimson/public_html/index.html"
</channel>
Code: Select all
# ftp configuration
# pisg_useftp is either 1 or .. it's off.
# pisg_localdir should be a full path, without trailing /
set pisg_useftp "1"
set pisg_server "ftp.mythosa.com"
set pisg_user "******"
set pisg_pass "******"
set pisg_localdir "/home/crimson/public_html"
set pisg_remotedir "/home/mythosa/public_html/ronin"
Code: Select all
# used for auto-creation and public !pisg messages
proc pisg_stats {min hour day month year} {
global pisgpath pisgconfig pisgchan
global pisg_localdir pisg_remotedir pisg_server pisg_user pisg_pass pisgversion pisg_useftp pisg_automsg pisg_url
putlog "pisg-$pisgversion: Channel Stats Generating.. please wait."
exec $pisgpath -co $pisgconfig
foreach pisgc [string tolower $pisgchan] {
set pisg_filename "index.html" (index.html originally read $pisgchan)
set pisg_newurl "$pisg_url/$pisg_filename"
if {$pisg_useftp == 1} {
set pisg_localfile "$pisg_localdir/$pisg_filename"
set pisg_remotefile "$pisg_remotedir/$pisg_filename"
pisg_sendftp $pisg_localfile $pisg_server $pisg_user $pisg_pass $pisg_remotefile
}
puthelp "PRIVMSG \#$pisgc :$pisg_automsg $pisg_newurl"
}
}
I'm sorry for the long post, but I tried to give as much info as I could. Thanks again for the help, and the time
Regards,
~C