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

	<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>2016-02-17T10:32:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2016-02-17T10:32:25-04:00</updated>

		<published>2016-02-17T10:32:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104709#p104709</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104709#p104709"/>
		<title type="html"><![CDATA[Re: Subtract seconds (math) [Help]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104709#p104709"><![CDATA[
Thanks <strong class="text-strong">willyw</strong>, work fine!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Wed Feb 17, 2016 10:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2016-02-17T09:04:15-04:00</updated>

		<published>2016-02-17T09:04:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104708#p104708</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104708#p104708"/>
		<title type="html"><![CDATA[Re: Subtract seconds (math) [Help]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104708#p104708"><![CDATA[
Are you sure you want to use == ?<br><br>Whatever you are doing, won't it be difficult to hit it exactly on 180 seconds?<br><br>Perhaps you want    &gt;=     or     &lt;=       ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Wed Feb 17, 2016 9:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2016-02-16T10:26:17-04:00</updated>

		<published>2016-02-16T10:26:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104703#p104703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104703#p104703"/>
		<title type="html"><![CDATA[Subtract seconds (math) [Help]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104703#p104703"><![CDATA[
In the file "djhora" I have stored the time value "count4d" .<br>What I want is to recover this value and subtract it to the current time .<br>If the result is equal to 180 seconds then execute a command.<div class="codebox"><p>Code: </p><pre><code>.....more commands.....if {![file exists djhora]} { set count4d [clock seconds]     set temp [open "djhora" w+]    puts $temp "$count4d"close $temp}set temp [open "djhora" r]set djh [gets $temp]close $tempif {[expr {[clock seconds] - $djh}] == 180} { do more commands..... }</code></pre></div>What is wrong ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Tue Feb 16, 2016 10:26 am</p><hr />
]]></content>
	</entry>
	</feed>
