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

	<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>2003-07-15T14:03:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-15T14:03:57-04:00</updated>

		<published>2003-07-15T14:03:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23523#p23523</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23523#p23523"/>
		<title type="html"><![CDATA[TCL to read php file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23523#p23523"><![CDATA[
Thanks for your help - I have it working brilliantly now<p>Statistics: Posted by Guest — Tue Jul 15, 2003 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-15T08:39:09-04:00</updated>

		<published>2003-07-15T08:39:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23500#p23500</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23500#p23500"/>
		<title type="html"><![CDATA[TCL to read php file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23500#p23500"><![CDATA[
I did look at something but I never saw that.<br><br>So should my code now read this:<br><div class="codebox"><p>Code: </p><pre><code>bind time - "00 * * * *"   autoupdate proc autoupdate {00 * * * *} { set file [open "|lynx -source http://website.com/file.txt" r] while {![eof $file]} { gets $file html if {$html == {}} {continue} set html [string trimleft $html "&lt;h1&gt;"] set html [string trimright $html "&lt;/h1&gt;"] putserv "TOPIC $chan :Welcome To The #channel - 4Currently on air:7 $html" #putserv "NOTICE $chan :$html is now on air. } }</code></pre></div>I do apologise for my stupidity but this is my first ever use of tcl.<br><br>DL<p>Statistics: Posted by Guest — Tue Jul 15, 2003 8:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-07-14T21:27:48-04:00</updated>

		<published>2003-07-14T21:27:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23482#p23482</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23482#p23482"/>
		<title type="html"><![CDATA[TCL to read php file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23482#p23482"><![CDATA[
Did you even look? It's pretty self explanatory.<br><br>    (37) TIME (stackable)<br>         bind time &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>         proc-name &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;month&gt; &lt;year&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Jul 14, 2003 9:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-14T21:07:04-04:00</updated>

		<published>2003-07-14T21:07:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23481#p23481</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23481#p23481"/>
		<title type="html"><![CDATA[TCL to read php file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23481#p23481"><![CDATA[
to be truthfull I've never done tcl before - and I don't really need to learn it other than to do this one thing.  I dont understand all these arguments, so <strong class="text-strong">please</strong> could someone tell me what arguments to put?<br><br>PLEEEEEASE!<br><br>Thanks,<br><br>DRL<p>Statistics: Posted by Guest — Mon Jul 14, 2003 9:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-07-14T20:16:23-04:00</updated>

		<published>2003-07-14T20:16:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23477#p23477</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23477#p23477"/>
		<title type="html"><![CDATA[TCL to read php file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23477#p23477"><![CDATA[
I don't know where you got your arguments, set while get putserv, but you can't just make these things up hehe.<br><br>Look in tcl-commands.doc for the arguments used in a time bind.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Jul 14, 2003 8:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-14T19:46:10-04:00</updated>

		<published>2003-07-14T19:46:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23475#p23475</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23475#p23475"/>
		<title type="html"><![CDATA[TCL to read php file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23475#p23475"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind time - "00 * * * *"   autoupdateproc autoupdate {set while get putserv} {set file [open "|lynx -source http://website.com/file.txt" r] while {![eof $file]} { gets $file html if {$html == {}} {continue} set html [string trimleft $html "&lt;h1&gt;"] set html [string trimright $html "&lt;/h1&gt;"] putserv "TOPIC $chan :Welcome To The #channel - 4Currently on air:7 $html"#putserv "NOTICE $chan :$html is now on air.  }}</code></pre></div>I can get it to read from the file fine - but tell me someone, why doesnt run the proc on the hour properly?<br><br>Thanks,<br><br>DL<p>Statistics: Posted by Guest — Mon Jul 14, 2003 7:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-07-14T16:03:06-04:00</updated>

		<published>2003-07-14T16:03:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23469#p23469</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23469#p23469"/>
		<title type="html"><![CDATA[TCL to read php file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23469#p23469"><![CDATA[
a) use the 'time' bind or 'timer' command (see tcl-commands.doc)<br><br>b) try the http.tcl package (search for it)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Jul 14, 2003 4:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-14T13:54:44-04:00</updated>

		<published>2003-07-14T13:54:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23467#p23467</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23467#p23467"/>
		<title type="html"><![CDATA[TCL to read php file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23467#p23467"><![CDATA[
I am writing a script for an IRC channel for a radio station which will basically look at a php file once an hour which will contain which show is on air.<br><br>Thing is... I am new to TCL and not sure how to a) get it to perform this action once an hour or b) actually get it to read a php file from a website.<br><br>Any help will be greatly recived.<br><br>Thanks,<br><br>David<p>Statistics: Posted by Guest — Mon Jul 14, 2003 1:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
