egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Channel Statistics

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
mm
Halfop


Joined: 01 Jul 2004
Posts: 78

PostPosted: Fri Dec 31, 2004 3:08 am    Post subject: Channel Statistics Reply with quote

HI, I am running "PISG" for my chan stats using my shell account "public_html" folder but our channel web page is on different server, is there anyway i can link the stats from my shell to that webpage? and bot/script updates automatically? i'll appreciate for your help

thanks and happy new year
_________________
MM
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Fri Dec 31, 2004 3:49 am    Post subject: Reply with quote

Have you even tried to search for pisg in the tcl archive?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Dec 31, 2004 9:06 am    Post subject: Re: Channel Statistics Reply with quote

mm wrote:
HI, I am running "PISG" for my chan stats using my shell account "public_html" folder but our channel web page is on different server, is there anyway i can link the stats from my shell to that webpage? and bot/script updates automatically? i'll appreciate for your help

thanks and happy new year


I don't know pisg, but if it does support updating remote website, it would be through periodical ftp'ing of html files - something that you could manage yourself in case it's not supported by pisg - by setting up a cronjob using wget
Back to top
View user's profile Send private message Visit poster's website
mm
Halfop


Joined: 01 Jul 2004
Posts: 78

PostPosted: Fri Dec 31, 2004 4:15 pm    Post subject: Reply with quote

Thanks a lot, you guys are always very helpfull. I was reading "Alchera" post regarding pisg, it's very helpfull, i am using his method of crontab, but how do i set ftp stuff in this crontab?
Code:
#!/bin/sh
statsbin="./pisg"
statpath="/home/wombles/public_html/chanstats"
cd $statpath
$statsbin


Here's my crontab entry:
Code:
Code:
0 0 * * * ~/public_html/chanstats/pisgchek >/dev/null 2>&1



Thanks again
_________________
MM
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Dec 31, 2004 8:07 pm    Post subject: Reply with quote

I was wrong, you need to use curl, not wget (I don't believe wget has upload capabilities)

for example, this shell command will set up a cronjob to upload all html files from your public_html directory to the remote webserver every other hour:
Code:

echo "00 0-23/2 * * * cd /home/yourlogin/public_html; for i in *.html; do /usr/bin/curl -T $i ftp://your.webserver.com/public_html/ -u yourlogin:yourpassword >/dev/null 2>&1; done" | crontab -
Back to top
View user's profile Send private message Visit poster's website
mm
Halfop


Joined: 01 Jul 2004
Posts: 78

PostPosted: Fri Dec 31, 2004 9:47 pm    Post subject: Reply with quote

thanks again demond, i am using shell account, so how to check if they have usr/bin/curl, so when i add your codes to "crontab" it should work, or should i ask shell admin to install curl?

thanks again
_________________
MM
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Dec 31, 2004 9:59 pm    Post subject: Reply with quote

in the shell type: which curl

if nothing comes up, ask the admin to install it

or, you can build & install it yourself for your private use (in ~/bin)
Back to top
View user's profile Send private message Visit poster's website
mm
Halfop


Joined: 01 Jul 2004
Posts: 78

PostPosted: Sat Jan 01, 2005 4:52 pm    Post subject: Reply with quote

thanks a lot.
_________________
MM
Back to top
View user's profile Send private message
devilsoulblack
Halfop


Joined: 19 Nov 2003
Posts: 62
Location: Chile

PostPosted: Wed Mar 07, 2007 10:24 pm    Post subject: Re: Channel Statistics Reply with quote

mm wrote:
HI, I am running "PISG" for my chan stats using my shell account "public_html" folder but our channel web page is on different server, is there anyway i can link the stats from my shell to that webpage? and bot/script updates automatically? i'll appreciate for your help

thanks and happy new year



used this

lftp -u user,paswd ftp.webpage.com -e "cd www ; cd stats ; put /home/user/pisg/index.html ; quit"

and for auto upload put this in cron

10 0,6,12,18 * * * lftp -u user,paswd ftp.webpage.com -e "cd www ; cd stats ; put /home/user/pisg/index.html ; quit"
_________________
---------
Add [SOLVED] to the thread title if your issue has been.
Search - FAQ
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu Mar 08, 2007 3:26 pm    Post subject: Reply with quote

Read: http://forum.egghelp.org/viewtopic.php?t=11378 for more ideas, too.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber