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
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
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?
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:
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 -
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?
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