<?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/19336" />

	<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>2013-02-09T03:52:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SmasHinG]]></name></author>
		<updated>2013-02-09T03:52:42-04:00</updated>

		<published>2013-02-09T03:52:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100939#p100939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100939#p100939"/>
		<title type="html"><![CDATA[Auto update script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100939#p100939"><![CDATA[
And here is the question how to get setting from old tcl to import in new tcl <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Madalin your idea is great but this think you want to auto update okay but setting for every tcl how to change from old tcl to new <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> That`s the big problem of your idea <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11766">SmasHinG</a> — Sat Feb 09, 2013 3:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2013-02-08T20:14:37-04:00</updated>

		<published>2013-02-08T20:14:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100936#p100936</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100936#p100936"/>
		<title type="html"><![CDATA[Auto update script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100936#p100936"><![CDATA[
Then go with clumsy. Those fields I mention are there for exactly the purpose you describe. To not use them is illogical.<br><blockquote class="uncited"><div>!webby <a href="http://ereader.kiczek.com/scripts/autogoogle.tcl" class="postlink">http://ereader.kiczek.com/scripts/autogoogle.tcl</a><br>&gt; No Title ( <a href="http://is.gd/gS8eHs" class="postlink">http://is.gd/gS8eHs</a> )( 200; application/x-tcl; iso8859-1; 6934 bytes )( 1y, 1h, 48m, 16s ago )<br><br>!webby <a href="http://ereader.kiczek.com/scripts/incith-fml.tcl" class="postlink">http://ereader.kiczek.com/scripts/incith-fml.tcl</a><br>&gt; No Title ( <a href="http://is.gd/RDbagE" class="postlink">http://is.gd/RDbagE</a> )( 200; application/x-tcl; iso8859-1; 26975 bytes )( 4w, 1d, 3h, 50m, 51s ago )</div></blockquote>I can tell very simply how old my scripts are on my site. Simple is best.<br><br><br>To do what you want is easy:<br>&lt;for the main script&gt;<br>Download the new script as somescript.new.tcl<br>Rename current version of the script as somescript.old.tcl<br>(If somescript.old.tcl exists before the rename, delete it before you rename.)<br>Now rename the new script from somescript.new.tcl to somescript.tcl<br><br>&lt;for the config&gt;<br>Make sure the config is something like: somescript.config.tcl<br>In the main script, source somescript.config.tcl<br><br>Now you can easily auto-update the script without bothering the user that you've ever done anything. Magic. Their config is never touched. Their settings remain the same.<br><br>Incith-google has an easter-egg (unexplained feature) that does this. You put settings you change from defaults in a file called "incith-google-settings.tcl". Any variables set in there are sourced after it creates the defaults. Thereby over-riding those defaults with custom values. It's all quite simple in design.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Fri Feb 08, 2013 8:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-02-08T19:46:01-04:00</updated>

		<published>2013-02-08T19:46:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100935#p100935</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100935#p100935"/>
		<title type="html"><![CDATA[Auto update script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100935#p100935"><![CDATA[
I don`t think that was the problem because making a simple .txt page with a number (the version) and making the bot read that wouldnt make the bot take to much bandwith. The think was if the my idea on how to update a script is the best way or not. If does steps are correct or i need another plan<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Fri Feb 08, 2013 7:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2013-02-08T19:42:44-04:00</updated>

		<published>2013-02-08T19:42:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100934#p100934</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100934#p100934"/>
		<title type="html"><![CDATA[Re: Auto update script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100934#p100934"><![CDATA[
<blockquote class="uncited"><div>I want to know what the best way to auto update a script.</div></blockquote>Using the <a href="http://en.wikipedia.org/wiki/HTTP_ETag" class="postlink"><strong class="text-strong">ETag</strong></a> or Last-Modified field within the reply header is easier. You wont need to read a page body, aka [::http::data] which means less bandwidth to check when an update is required...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Fri Feb 08, 2013 7:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-02-08T19:00:19-04:00</updated>

		<published>2013-02-08T19:00:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100932#p100932</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100932#p100932"/>
		<title type="html"><![CDATA[Auto update script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100932#p100932"><![CDATA[
I want to know what the best way to auto update a script. I want to create a script like this. I want to get all my scripts work with this meaning that all my scripts could auto update themselfs (or manually).<br><br>I was thinking at something like this:<br><br><strong class="text-strong">Script</strong><br>1. The script itself will check a page on a domain for the script version (if the version is other) the script will wget the new file and remove the old one (or make a backup of it)<br>2. The bot will rehash/restart depending on the modification<br><br><strong class="text-strong">Website</strong><br>1. Every tcl script will have a folder or its own (.tcl and .info). The script will check the .info file and see if the script was updated or not<br>2. <em class="text-italics">For the public scripts i will want to make a specific file so that every public script will contain a specified KEY (if key is invalid he wont be able to wget the file) if its valid he will</em><br><br>For the public scripts i think a manually command would be better than an automated proc<br><br>The part with they key i think it would be harder <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> yet i posted anyway. If anyone has any other ideas on how to make this pelase reply.[/b]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Fri Feb 08, 2013 7:00 pm</p><hr />
]]></content>
	</entry>
	</feed>
