| View previous topic :: View next topic |
| Author |
Message |
mm Halfop
Joined: 01 Jul 2004 Posts: 78
|
Posted: Fri Dec 31, 2004 3:08 am Post subject: Channel Statistics |
|
|
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 |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Fri Dec 31, 2004 3:49 am Post subject: |
|
|
| Have you even tried to search for pisg in the tcl archive? |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Dec 31, 2004 9:06 am Post subject: Re: Channel Statistics |
|
|
| 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 |
|
 |
mm Halfop
Joined: 01 Jul 2004 Posts: 78
|
Posted: Fri Dec 31, 2004 4:15 pm Post subject: |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Dec 31, 2004 8:07 pm Post subject: |
|
|
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 |
|
 |
mm Halfop
Joined: 01 Jul 2004 Posts: 78
|
Posted: Fri Dec 31, 2004 9:47 pm Post subject: |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Dec 31, 2004 9:59 pm Post subject: |
|
|
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 |
|
 |
mm Halfop
Joined: 01 Jul 2004 Posts: 78
|
Posted: Sat Jan 01, 2005 4:52 pm Post subject: |
|
|
thanks a lot. _________________ MM |
|
| Back to top |
|
 |
devilsoulblack Halfop

Joined: 19 Nov 2003 Posts: 62 Location: Chile
|
Posted: Wed Mar 07, 2007 10:24 pm Post subject: Re: Channel Statistics |
|
|
| 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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
|
| Back to top |
|
 |
|