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

	<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>2004-03-18T17:17:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-18T17:17:34-04:00</updated>

		<published>2004-03-18T17:17:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34776#p34776</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34776#p34776"/>
		<title type="html"><![CDATA[421 and 530 check in ftp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34776#p34776"><![CDATA[
when a non async connection is made the socket command returns a value that value is $sock in this case if u resolve the variable then it will match sock1 or sock2 depends on how many sock are open or witch one is available.. so if u wana check if a connection is made u do string match -nocase .. for sock? "?" cause u don't know the value you also could do sock*<br><blockquote class="uncited"><div>i have 1 problem <br>with -&gt; <br>if {[string match -nocase "sock?" $sock]} { </div></blockquote>what is the problem??<br><br>you don't need the ftp lib to do this .. so ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Mar 18, 2004 5:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-03-18T15:33:13-04:00</updated>

		<published>2004-03-18T15:33:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34760#p34760</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34760#p34760"/>
		<title type="html"><![CDATA[421 and 530 check in ftp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34760#p34760"><![CDATA[
See <a href="http://tmml.sourceforge.net/doc/tcl/string.html" class="postlink">string</a> manual.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Mar 18, 2004 3:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-03-18T12:32:42-04:00</updated>

		<published>2004-03-18T12:32:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34754#p34754</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34754#p34754"/>
		<title type="html"><![CDATA[421 and 530 check in ftp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34754#p34754"><![CDATA[
i have 1 problem <br><br>with -&gt; <br><br>if {[string match -nocase "sock?" $sock]} {<br><br>could u tell me what it means .. what it check's<p>Statistics: Posted by Guest — Thu Mar 18, 2004 12:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-03-18T11:49:08-04:00</updated>

		<published>2004-03-18T11:49:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34746#p34746</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34746#p34746"/>
		<title type="html"><![CDATA[421 and 530 check in ftp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34746#p34746"><![CDATA[
10x man <br>it's working great<p>Statistics: Posted by Guest — Thu Mar 18, 2004 11:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-03-18T08:17:57-04:00</updated>

		<published>2004-03-18T08:17:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34742#p34742</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34742#p34742"/>
		<title type="html"><![CDATA[421 and 530 check in ftp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34742#p34742"><![CDATA[
10x i'll test it<p>Statistics: Posted by Guest — Thu Mar 18, 2004 8:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-15T16:16:26-04:00</updated>

		<published>2004-03-15T16:16:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34648#p34648</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34648#p34648"/>
		<title type="html"><![CDATA[421 and 530 check in ftp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34648#p34648"><![CDATA[
There that should take care of it .. i think. Haven't tested it tho so ..<br><div class="codebox"><p>Code: </p><pre><code># Usage: ftpcheck ip port login passproc ftpcheck {host port user pass} {  catch {socket $host $port} sock  if {[string match -nocase "sock?" $sock]} {    puts $sock "USER $user"    puts $sock "PASS $pass"    while {![eof $sock]} {      flush $sock      gets $sock line      if {[string match -nocase 421 [lindex $line 0]]} {         putserv "PRIVMSG $nick :Ftp Full."         close $sock         return 0      } elseif {[string match -nocase 530 [lindex $line 0]]} {         putserv "PRIVMSG $nick :Account Disabled."         close $sock         return 0      } elseif {[string match -nocase 230 [lindex $line 0]]} {         putserv "PRIVMSG $nick :Logged in."         close $sock         return 1      }    }    close $sock  } else {    putserv "PRIVMSG $nick :Error No Route Host."    return 0  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Mar 15, 2004 4:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-03-14T09:54:57-04:00</updated>

		<published>2004-03-14T09:54:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34594#p34594</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34594#p34594"/>
		<title type="html"><![CDATA[421 and 530 check in ftp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34594#p34594"><![CDATA[
hello i have this script :<br><br><br><br>bind msg - test ddd:test<br>proc ddd:test {nick userhost handle text} {<br>global aaaaass statval host user port pass<br>set aaaaass [uri::split $text] <br>set port [lindex $aaaaass 1]<br>set host [lindex $aaaaass 7]<br>set user [lindex $aaaaass 11]<br>set pass [lindex $aaaaass 13]<br>  set statval [ftp::Open $host $user $pass -port $port -output] <br>            if {$statval == 0} { <br>              putserv "PRIVMSG $nick : \002FTP \002 \0034down\0034!" <br>            } else {<br>              putserv "PRIVMSG $nick : \002FTP \002 \0039up\0039!" <br>              ftp::Close $statval;<br>    <br>}<br>}<br><br><br>how i check if the ftp return 421 or 530 right now it's just checking if it's loged or not loged <br>10x<p>Statistics: Posted by Guest — Sun Mar 14, 2004 9:54 am</p><hr />
]]></content>
	</entry>
	</feed>
