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

	<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>2012-01-17T15:35:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrunchyCap]]></name></author>
		<updated>2012-01-17T15:35:21-04:00</updated>

		<published>2012-01-17T15:35:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98564#p98564</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98564#p98564"/>
		<title type="html"><![CDATA[ping address]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98564#p98564"><![CDATA[
Add this as first line of the script to get it to work.<br><br>"package require http"<br><br>Thanks thommey!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11893">CrunchyCap</a> — Tue Jan 17, 2012 3:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrunchyCap]]></name></author>
		<updated>2012-01-17T11:00:20-04:00</updated>

		<published>2012-01-17T11:00:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98561#p98561</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98561#p98561"/>
		<title type="html"><![CDATA[ping address]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98561#p98561"><![CDATA[
I tried this out but get this error <blockquote class="uncited"><div>Tcl error [ping]: invalid command name "::http::geturl"</div></blockquote>Means I am missing a package or?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11893">CrunchyCap</a> — Tue Jan 17, 2012 11:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2012-01-16T07:06:10-04:00</updated>

		<published>2012-01-16T07:06:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98541#p98541</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98541#p98541"/>
		<title type="html"><![CDATA[ping address]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98541#p98541"><![CDATA[
5:01:33pm / * &lt;iRoc&gt; !ping 74.125.235.49<br>5:01:36pm / * &lt;iB0T&gt; Address: 74.125.235.49 Status: <span style="color:green">ONLINE</span> PING Speed: 71.82 ms <br><br>5:07:39pm / * &lt;iRoc&gt; !ping google.com<br>5:07:41pm / * &lt;iB0T&gt; Address: google.com Status: <span style="color:green">ONLINE</span> PING Speed: 11.53 ms <br><br>5:01:54pm / * &lt;iRoc&gt; !ping 205.234.179.173<br>5:01:56pm / * &lt;iB0T&gt; Address: 205.234.179.173 Status: <span style="color:red">OFFLINE</span> PING Speed: 0 ms <br><div class="codebox"><p>Code: </p><pre><code>bind pub -!- !ping pingproc ping {nick uhost hand chan text} {set ping(page) http://www.iwebtool.com/ping?domain=set t [::http::geturl "$ping(page)$text" -timeout 30000]set data [::http::data $t]set text [lindex [split $text] 0] ::http::cleanup $tputlog "$ping(page)$text"#putlog "$l"if {[string is space $text]} {putserv "PRIVMSG $chan :No IP given. Usage : !ping &lt;IPADDRESS&gt;"return 0} else {set l [regexp -all -inline -- {&lt;tr&gt;&lt;td align="center"&gt;.*?&lt;/td&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;td align="center"&gt;&lt;font color="#.*?"&gt;&lt;b&gt;(.*?)&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;td align="center"&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;} $data]   foreach {black a b c} $l {   set a [string trim [string map {{ } {} {\n} {}} $a]]set b [string trim [string map {{ONLINE} {3ONLINE} {OFFLINE} {4OFFLINE} { } {} {\n} {}} $b]]set c [string trim [string map {{ } {} {\n} {}} $c]]   putserv "PRIVMSG $chan :Address:14 $a Status: $b PING Speed:14 $c "return 0}putserv "privmsg $chan :Sorry, $nick $text Not Valid IP"}}</code></pre></div><p>Statistics: Posted by Guest — Mon Jan 16, 2012 7:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Elfriede]]></name></author>
		<updated>2012-01-16T06:19:12-04:00</updated>

		<published>2012-01-16T06:19:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98540#p98540</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98540#p98540"/>
		<title type="html"><![CDATA[ping address]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98540#p98540"><![CDATA[
Hi everyone <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Im looking for a script, that pings a given address and replies ping time / if url is up or down / in seconds.<br><br>Like:<br><br>!ping 173.194.69.104<br><br>bot: ping reply 1.4s<br><br>or !ping 177.777.154<br>bot: down / not reachable<br><br>if possible a configurable timeout would be appreciated.<br><br>Hope someone is willing to do me this favour!<br><br>Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9204">Elfriede</a> — Mon Jan 16, 2012 6:19 am</p><hr />
]]></content>
	</entry>
	</feed>
