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

	<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>2007-03-18T01:08:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-03-18T01:08:11-04:00</updated>

		<published>2007-03-18T01:08:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71337#p71337</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71337#p71337"/>
		<title type="html"><![CDATA[Problem with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71337#p71337"><![CDATA[
@Nara: Then switching to passive will most certainly solve your issues. This is because your client will send both ip-address and port-number to where the server should connect the datachannel. Unfortunately, your client only knows of its local (or LAN) ip and not the "external" (or WAN), and sends this. Obviously, since the server is'nt located behind your firewall, this really does'nt make much sense to the server, giving a "500 Invalid PORT command" response-code. Your ftp-client then returns a somewhat misleading error message, stating that the address is already in use..<br><br>In this case it has nothing to do with any other processes running on your shell<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Mar 18, 2007 1:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-03-18T00:49:24-04:00</updated>

		<published>2007-03-18T00:49:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71336#p71336</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71336#p71336"/>
		<title type="html"><![CDATA[Problem with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71336#p71336"><![CDATA[
[21:36:44] &lt;egln|radiobot&gt; Currently: ftp: bind: Address already in use <br><br><br>Looks like there's more than one process using that address.. If it was not able to bind the port for permissions reasons, it would've given a different error msg.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Mar 18, 2007 12:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nara]]></name></author>
		<updated>2007-03-17T22:56:07-04:00</updated>

		<published>2007-03-17T22:56:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71334#p71334</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71334#p71334"/>
		<title type="html"><![CDATA[Problem with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71334#p71334"><![CDATA[
It's behind a firewall, but FTP ports are open. I use a Slackware based distro named Zenwalk. I don't get the error when I manually do it. I have yet to find time to put in sendmode and test it that way.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8006">Nara</a> — Sat Mar 17, 2007 10:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-03-17T20:46:21-04:00</updated>

		<published>2007-03-17T20:46:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71328#p71328</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71328#p71328"/>
		<title type="html"><![CDATA[Problem with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71328#p71328"><![CDATA[
Giving root-access to someone you don't know in person and really, really trust is a very bad idea.<br><br>That said, back to the problem:<br>Which system do you run, and where applicable, which distribution?<br>Try executing /usr/bin/ftp, or if command not found, /bin/ftp; connect to remote site, logon with the same credentials that you use with your script, and manually try to send the file. See if you get the same error, and wether using the command "sendport" within the ftp-client helps.<br><br>Edit:<br>Your system does'nt happen to be behind a masquerading firewall (NAT)?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Mar 17, 2007 8:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nara]]></name></author>
		<updated>2007-03-17T20:10:56-04:00</updated>

		<published>2007-03-17T20:10:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71327#p71327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71327#p71327"/>
		<title type="html"><![CDATA[Problem with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71327#p71327"><![CDATA[
I use the base FTP program. If it would assist you, I can give you a root account on my box temporarily and you can check whether or not that's the problem. I'll also check the sendmode and get back to you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8006">Nara</a> — Sat Mar 17, 2007 8:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-03-17T15:06:07-04:00</updated>

		<published>2007-03-17T15:06:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71317#p71317</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71317#p71317"/>
		<title type="html"><![CDATA[Problem with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71317#p71317"><![CDATA[
This would unfortunately be depending on what system and/or ftp client software you've got installed.<br>Some psuedo-standard approach would be to give the "sendport" command to the client to disable non-passive ("PORT") mode.<br><br>To do this, change this:<div class="codebox"><p>Code: </p><pre><code>   set pipe [open "|$ftpprog -n $server" w]   puts $pipe "user $user $pass"   puts $pipe "bin"   puts $pipe "put $localfile $remotefile"   puts $pipe "quit"</code></pre></div>into this:<div class="codebox"><p>Code: </p><pre><code>   set pipe [open "|$ftpprog -n $server" w]   puts $pipe "user $user $pass"   puts $pipe "bin"   puts $pipe "sendmode"   puts $pipe "put $localfile $remotefile"   puts $pipe "quit"</code></pre></div>You might however wish to look into your system's setup, as users should normally be able to bind to non-system (above 1023) ports on all interfaces. Also, all but very antique ftp software would use random non-system ports for PORT-transfers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Mar 17, 2007 3:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nara]]></name></author>
		<updated>2007-03-17T14:46:15-04:00</updated>

		<published>2007-03-17T14:46:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71315#p71315</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71315#p71315"/>
		<title type="html"><![CDATA[Problem with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71315#p71315"><![CDATA[
I am the sysadmin. I just simply have a very limited linux knowledge. Could you tell me what needs to be done?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8006">Nara</a> — Sat Mar 17, 2007 2:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-03-16T18:06:33-04:00</updated>

		<published>2007-03-16T18:06:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71296#p71296</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71296#p71296"/>
		<title type="html"><![CDATA[Problem with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71296#p71296"><![CDATA[
Actually, the error is'nt with either tcl's, but with the ftp-binary the sendftp script relies on...<br>The ftp-binary is unable to create a listening-socket, and thus exits with the error message "ftp: bind: Address already in use".<br><br>One way of possibly solving this issue would be to make the client run in passive mode, using proper command with the client. But other than that, your best chance of getting this solved would be to bug your sysadmin.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Mar 16, 2007 6:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nara]]></name></author>
		<updated>2007-03-16T14:33:18-04:00</updated>

		<published>2007-03-16T14:33:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71294#p71294</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71294#p71294"/>
		<title type="html"><![CDATA[Problem with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71294#p71294"><![CDATA[
<blockquote class="uncited"><div>Your problem is with the battle:update procedure.<br>You should have posted the script with battle:update in it.<br>The error was quite clear where the problem is:<blockquote class="uncited"><div>procedure "battle:update" line 2</div></blockquote></div></blockquote>Here's the code for that:<div class="codebox"><p>Code: </p><pre><code>bind pub M @update battle:updateproc battle:update { nick host hand chan text } {sendftp /home/century0/hrpeggdrop/djonair.txt [censored personal info] /reports/djonair.txtputlog "Updated logs on website."putquick "NOTICE $nick :$head Updated logs on website. $tail"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8006">Nara</a> — Fri Mar 16, 2007 2:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2007-03-16T12:49:11-04:00</updated>

		<published>2007-03-16T12:49:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71289#p71289</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71289#p71289"/>
		<title type="html"><![CDATA[Problem with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71289#p71289"><![CDATA[
Your problem is with the battle:update procedure.<br>You should have posted the script with battle:update in it.<br>The error was quite clear where the problem is:<blockquote class="uncited"><div>procedure "battle:update" line 2</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Fri Mar 16, 2007 12:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nara]]></name></author>
		<updated>2007-03-16T12:05:25-04:00</updated>

		<published>2007-03-16T12:05:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71286#p71286</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71286#p71286"/>
		<title type="html"><![CDATA[Problem with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71286#p71286"><![CDATA[
Here is the script:<br><div class="codebox"><p>Code: </p><pre><code>## Sendftp v1.01 (12/6/97) by Ernst &lt;ernst@studbox.uni-stuttgart.de&gt;# Ernst's eggdrop page:  http://www.sodre.net/ernst/eggdrop/# =============================================================================# This is a proc to send a file via FTP to another server. Useful in many# situations, for example to upload a HTML file generated by eggdrop to your# www server if it is not the same as your eggdrops machine.# Change this to something to use to check if a host is alife.# set pingcheck "" to disable this checking.# "/bin/ping -c 1" works on Linux. Try just "/bin/ping" on other machines# Set to "" to disable this checkingset pingcheck ""# Include it with 'source scripts/sendftp.tcl'.  Call it with all parameters:##   sendftp &lt;localfile&gt; &lt;server&gt; &lt;user&gt; &lt;password&gt; &lt;remotefile&gt;## 'localfile' and 'remotefile' *must* both be given as FULL paths to the# filenames, the first on the local, the secondon the remote server.## For example:## sendftp /home/bill/stats.htm www.ms.com bill secret /bgates/WWW/stats.htm#             (local-file       server    user  pass       remote-file)proc sendftp { localfile server user pass remotefile } {global pingcheckif {![file exist $localfile]} {return "sendftp: File $localfile does not exist."}if {$pingcheck != ""} {if {[catch {exec [lindex $pingcheck 0] [lrange $pingcheck 1 end] $server &gt; /dev/null 2&gt; /dev/null}]} {return "sendftp: Machine $server seems to be dead."}}set noftp [catch {set ftpprog [exec which ftp]}] if {$noftp} {if {[file executable /usr/bin/ftp]} {set ftpprog /usr/bin/ftpset noftp 0}if {[file executable /bin/ftp]} {set ftpprog /bin/ftpset noftp 0}}if {$noftp} { return "sendftp: You don't seem to have the 'ftp' tool" }set pipe [open "|$ftpprog -n $server" w]puts $pipe "user $user $pass"puts $pipe "bin"puts $pipe "put $localfile $remotefile"puts $pipe "quit"close $pipereturn 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8006">Nara</a> — Fri Mar 16, 2007 12:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2007-03-13T12:47:38-04:00</updated>

		<published>2007-03-13T12:47:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71206#p71206</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71206#p71206"/>
		<title type="html"><![CDATA[Problem with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71206#p71206"><![CDATA[
There is no "sendftp" protocol in TCL.<br>You most likely will not get help without posting the script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Tue Mar 13, 2007 12:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nara]]></name></author>
		<updated>2007-03-12T21:35:29-04:00</updated>

		<published>2007-03-12T21:35:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71200#p71200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71200#p71200"/>
		<title type="html"><![CDATA[Problem with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71200#p71200"><![CDATA[
I am using the sendftp protocol and I get this error whenever I use it:<div class="codebox"><p>Code: </p><pre><code>[21:36:44] &lt;egln|radiobot&gt; Currently: ftp: bind: Address already in use[21:36:44] &lt;egln|radiobot&gt; Currently:     while executing[21:36:44] &lt;egln|radiobot&gt; Currently: "close $pipe"[21:36:44] &lt;egln|radiobot&gt; Currently:     (procedure "sendftp" line 28)[21:36:44] &lt;egln|radiobot&gt; Currently:     invoked from within[21:36:44] &lt;egln|radiobot&gt; Currently: "sendftp /home/century0/hrpeggdrop/djonair.txt [censored] [censored] [censored] /reports/djonair.txt"[21:36:44] &lt;egln|radiobot&gt; Currently:     (procedure "battle:update" line 2)[21:36:44] &lt;egln|radiobot&gt; Currently:     invoked from within[21:36:44] &lt;egln|radiobot&gt; Currently: "battle:update $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"</code></pre></div>Does anyone know a way to fix this problem?<br><br>~Nara<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8006">Nara</a> — Mon Mar 12, 2007 9:35 pm</p><hr />
]]></content>
	</entry>
	</feed>
