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

	<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>2010-05-24T12:43:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-05-24T12:43:21-04:00</updated>

		<published>2010-05-24T12:43:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93168#p93168</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93168#p93168"/>
		<title type="html"><![CDATA[upload a file using FTP]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93168#p93168"><![CDATA[
Zeta:<br>Debugging scripts like that is less than trivial, mainly because it depends on external binaries on the hosting system; /bin/ping and /bin/ftp.<br>The current use of ping is especially questionable, as most implementations would block your eggdrop for considerably amounts of time. This is also what currently fails in your script. The actual error message(s) and/or return values are discarded however, leaving no clues as to whether the binary (/bin/ping) is actually there and executable, or whether (and why) the ping binary returns an error condition.<br><br>The interaction with the ftp binary is poor at best, not checking the response of any issued commands. This would probably be the main reason for the initial ping in the first place.<br><br>Also, this script has a poor time-mask, causing it to trigger once every minute 12:00am through 12:59am.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon May 24, 2010 12:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2010-05-23T20:00:55-04:00</updated>

		<published>2010-05-23T20:00:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93165#p93165</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93165#p93165"/>
		<title type="html"><![CDATA[upload a file using FTP]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93165#p93165"><![CDATA[
you might want to take a look at lftp<br>works fine for me in cases of uploading and downloading<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Sun May 23, 2010 8:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zeta]]></name></author>
		<updated>2010-05-23T12:39:31-04:00</updated>

		<published>2010-05-23T12:39:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93161#p93161</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93161#p93161"/>
		<title type="html"><![CDATA[upload a file using FTP]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93161#p93161"><![CDATA[
I'm using this code<br><div class="codebox"><p>Code: </p><pre><code>set ftp(host) "host"  set ftp(user) "user"  set ftp(pass) "pass" set ftp(dir)  "logs"set ftp(updir) "eggdrop"bind time - "* 00 * * *" timed:uploadproc timed:upload {m h d m y} {global ftpif {[catch {exec /bin/ping $ftp(host) &gt; /dev/null 2&gt; /dev/null}]} {putlog "FTP: Remote server seams to be dead" ; return}set ftpz [open "/bin/ftp -n $ftp(host)" w]puts $ftpz "user $ftp(user) $ftp(pass)"puts $ftpz "bin"foreach file [lsort [glob -directory $ftp(dir) *]] {if { [file readable $file] &amp;&amp; [file isfile $file]} {puts $ftpz "put $file ${$ftp(updir)}/${file}"}}puts $ftpz "quit"close $ftpzputlog "FTP: all files in $ftp(dir) uploaded successfuly to $ftp(host)"}</code></pre></div>but it doesn't work<br>it returns "Remote server seams to be dead"<br><br>if someone could help it would be appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9839">Zeta</a> — Sun May 23, 2010 12:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-05-23T12:19:04-04:00</updated>

		<published>2010-05-23T12:19:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93160#p93160</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93160#p93160"/>
		<title type="html"><![CDATA[upload a file using FTP]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93160#p93160"><![CDATA[
You could try using the ftp-package available in tcllib:<br><a href="http://tcllib.sourceforge.net/doc/ftp-docs/" class="postlink">http://tcllib.sourceforge.net/doc/ftp-docs/</a><br><a href="http://sourceforge.net/projects/tcllib/" class="postlink">http://sourceforge.net/projects/tcllib/</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun May 23, 2010 12:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zeta]]></name></author>
		<updated>2010-05-22T18:41:12-04:00</updated>

		<published>2010-05-22T18:41:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93152#p93152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93152#p93152"/>
		<title type="html"><![CDATA[upload a file using FTP]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93152#p93152"><![CDATA[
How can I upload a file with my eggdrop using FTP?<br>I want to upload a file in a website at 9 o'clock<br>How can I do that?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9839">Zeta</a> — Sat May 22, 2010 6:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
