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

	<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-10-05T04:55:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Devilion]]></name></author>
		<updated>2007-10-05T04:55:57-04:00</updated>

		<published>2007-10-05T04:55:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76385#p76385</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76385#p76385"/>
		<title type="html"><![CDATA[Ignoring feedback on ftp-ing..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76385#p76385"><![CDATA[
Thank you!<br><br>I've been searching for a function like that, but I just couldn't find it.... but it works!<br><br>Thanks a lot  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6188">Devilion</a> — Fri Oct 05, 2007 4:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-10-04T22:56:51-04:00</updated>

		<published>2007-10-04T22:56:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76384#p76384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76384#p76384"/>
		<title type="html"><![CDATA[Ignoring feedback on ftp-ing..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76384#p76384"><![CDATA[
enclose it in a catch function:<br><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/catch.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/catch.htm</a><br>Evaluate script and <em class="text-italics">trap exceptional returns</em><br>eg:<br><br><span style="color:red">catch {</span>set pipe [open "|ncftp -u username -p password ftp.omgno.com" w]<br> puts $pipe "put -f $localfile"<br> close $pipe<br> puthelp "PRIVMSG #channel : $affv_url"<span style="color:red">} error</span><br> return 0 <br><br>Something like that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Thu Oct 04, 2007 10:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Devilion]]></name></author>
		<updated>2007-10-04T17:11:50-04:00</updated>

		<published>2007-10-04T17:11:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76381#p76381</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76381#p76381"/>
		<title type="html"><![CDATA[Ignoring feedback on ftp-ing..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76381#p76381"><![CDATA[
Hi, I've edited myself a little script that upload a file to another server of mine using ncftp (another linux ftp client, because I don't have access to the normal ftp)..<br><br>My problem is that, when the script is executed, I always get this error:<br>(22:52:59) (dless) [22:54] Tcl error [affv_dcctrig]: /home/albert/dless/index.html:<br>(22:52:59) (dless) .../dless/index.html: ETA: 0:00 15.44/ 15.44 kB 56.25 MB/s<br>(22:52:59) (dless) .../dless/index.html: ETA: 0:00 15.44/ 15.44 kB 531.45 kB/s<br><br>Whilst that is not an error, it is the response to the uploading commands of ncftp, so, it works, and it uploads the file, but the script breaks off right then and there, because of the error.<br><br>How do I tell the bot to ignore this text, and not see it as an error?<br><br>This is the code:<div class="codebox"><p>Code: </p><pre><code>proc affv_dcctrig {handle ipx arg} {  global affvpath affvconfig affvchan  global affv_localdir affv_useftp affv_url  putlog "affv: Please wait..."  exec $affvpath -co $affvconfig  foreach affvc [string tolower $affvchan] {    set affv_filename "$affvnew.html"    set affv_newurl "$affv_url/$affv_filename"    if {$affv_useftp == 1} {  set affv_localfile "$affv_localdir/$affv_filename"      affv_sendftp $affv_localfile      puthelp "PRIVMSG #channel : $affv_url"  return 0    }  puthelp "PRIVMSG #channel : $affv_url"  }}</code></pre></div>which triggers:<br><div class="codebox"><p>Code: </p><pre><code>proc affv_sendftp { localfile } { global pingcheck   global affv_url  set pipe [open "|ncftp -u username -p password ftp.omgno.com" w]  #puts $pipe "binary" -- not needed  puts $pipe "put -f $localfile"  #puts $pipe "quit" -- not needed  close $pipe  puthelp "PRIVMSG #channel : $affv_url"  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6188">Devilion</a> — Thu Oct 04, 2007 5:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
