<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/11378" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2006-08-08T23:27:15-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/11378</id>

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-08-08T23:27:15-04:00</updated>

		<published>2006-08-08T23:27:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65305#p65305</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65305#p65305"/>
		<title type="html"><![CDATA[bash script to generate/upload pisg page]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65305#p65305"><![CDATA[
Here's a little shell script I wrote today to generate a pisg page and upload it to my website by ftp. Yes I could have written it in tcl, but I was being lazy.<br><div class="codebox"><p>Code: </p><pre><code>#!/bin/bash# max number of retries in case the 1st ftp attempt failsmaxit=10#generate the new file by calling pisg/home/mybot/pisg-0.68/pisg# function to do the ftp - Assumes that your pisg file is called index.htmlftpf() {ftp -n -i myisp.com&lt;&lt;SCRIPTquote user mynamequote pass passwordcd /remote/dir/on/myisp.com/path/www/pisglcd /home/mybot/pisg-0.68put index.htmlget index.html retrieved.htmlquitSCRIPT# this verifies the transfer was successfulif [ -f retrieved.html ]then        echo "upload: success"        rm -f retrieved.html        exitelse        echo "upload: failed - attempt $i"        sleep 60sfi}# this gets the ball rolling and keeps it rolling until we exit with a success# or reach $maxit number of retriesi=0while [ $i -lt $maxit ]do        i=`expr $i + 1`        ftpfdone</code></pre></div>This can be run from cron if you wish.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Tue Aug 08, 2006 11:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Minus]]></name></author>
		<updated>2006-08-01T13:27:22-04:00</updated>

		<published>2006-08-01T13:27:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65076#p65076</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65076#p65076"/>
		<title type="html"><![CDATA[ftp + pisg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65076#p65076"><![CDATA[
rias looking for the same did you get it to work?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7926">Minus</a> — Tue Aug 01, 2006 1:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rias]]></name></author>
		<updated>2006-02-15T11:09:37-04:00</updated>

		<published>2006-02-15T11:09:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60441#p60441</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60441#p60441"/>
		<title type="html"><![CDATA[ftp + pisg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60441#p60441"><![CDATA[
Sorry for posting in the wrong forum.  Hopefully some kind admin/mod can move this to the correct forum over me posting an entirely new, but altogether identical in subject matter, thread.<br><br>I have got my shell provider to install curl and i can manually upload the stats now, but im unsure how i set this in a file and link it to a cronjob. <br><br>Really appreciate help on this last part.<br><div class="codebox"><p>Code: </p><pre><code>curl -T public_html/stats -u me@me.com:passhere ftp://me.com/ircstats/</code></pre></div>All i need is a way to fit that code in a file like: "pisgupload" and then attach a crobjob to match the pisg update intervals of 30 mins.<br><br>Thankyou.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7373">rias</a> — Wed Feb 15, 2006 11:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[deadite66]]></name></author>
		<updated>2006-02-15T02:55:58-04:00</updated>

		<published>2006-02-15T02:55:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60436#p60436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60436#p60436"/>
		<title type="html"><![CDATA[ftp + pisg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60436#p60436"><![CDATA[
i use weex to upload mine together with cron  <a href="http://weex.sourceforge.net/" class="postlink">http://weex.sourceforge.net/</a><br><div class="codebox"><p>Code: </p><pre><code># the configuration of 1st host[pisg-site1]HostName= ftp.site.co.ukLoginName= loginnamePassword= passwordSrcDir= /home/pisg/site1/DestDir= /pisg/site1IgnoreLocalFile= {}IgnoreRemoteDir= {}</code></pre></div>you then can set up cron to run "weex pisg-site1"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6296">deadite66</a> — Wed Feb 15, 2006 2:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-02-14T23:15:30-04:00</updated>

		<published>2006-02-14T23:15:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60433#p60433</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60433#p60433"/>
		<title type="html"><![CDATA[ftp + pisg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60433#p60433"><![CDATA[
wrong forum dude<br><br>and set up your cron script using wget or curl<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Feb 14, 2006 11:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rias]]></name></author>
		<updated>2006-02-14T21:08:31-04:00</updated>

		<published>2006-02-14T21:08:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60431#p60431</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60431#p60431"/>
		<title type="html"><![CDATA[ftp + pisg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60431#p60431"><![CDATA[
<blockquote class="uncited"><div>For crontab create a file called "pisgchek" and chmod it 755. <br><br>Here is the content of my file: <br>Code: <br>#!/bin/sh <br><br>statsbin="./pisg" <br>statpath="/home/Ballarat/public_html/pisg-0.52" <br><br>cd $statpath <br><br>$statsbin <br><br>And here is my crontab entry: <br>Code: <br>0,30 * * * * ~/public_html/pisg-0.52/pisgchek &gt;/dev/null 2&gt;&amp;1 <br><br>For some reason (that I cannot remember) I have pisg sitting in "pisg-0.52" but that's irrelevant. LOL <br><br>Crontab updates my stats page every 30 minutes on the hour. You should be easily able to set up a crontab for FTP with little effort also. </div></blockquote>I am after uploading my stats via ftp on the shell to my web servers subdomain as index.html. Not exclusive to that, to also have it upload each 30 mins without the need for me to manually execute the ftp upload.<br><br>I have a file called "pisgcheck" and i have a cron set to update the stats in intervals of 30mins, but as-of-right-now, the stats only generate to the folder public_html on the shell, and id like to have the stats on my website preferably.<br><br>Can anyone show me how i setup an ftp cronjob to upload my stats to my websever. I have looked at some readme's but I never seem to get it right, so, any help is appreciated.<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7373">rias</a> — Tue Feb 14, 2006 9:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
