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

	<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>2005-08-14T10:37:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-14T10:37:28-04:00</updated>

		<published>2005-08-14T10:37:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54242#p54242</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54242#p54242"/>
		<title type="html"><![CDATA[CHATstats 3.1.2 everything works but ftp to website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54242#p54242"><![CDATA[
read the top thread in "Scripting Help" forum and proceed accordingly<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Aug 14, 2005 10:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Hunty]]></name></author>
		<updated>2005-08-14T09:59:03-04:00</updated>

		<published>2005-08-14T09:59:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54239#p54239</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54239#p54239"/>
		<title type="html"><![CDATA[CHATstats 3.1.2 everything works but ftp to website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54239#p54239"><![CDATA[
We have exactlly the same problem as DallasD has described.<br><br>we are using eggdrop v1.6.17, on Linux 2.6.10-grsec.<br><br>No matter what we do the script refuses to open ftp, weve tried, ftp.name ftp.ipnumber ft://ipnumber etc have also tried to link it too two other ftp sites we have but no matter what we do it refuses to open ftp.<br><br>Weve tried setting both ulmethod=0 and ulmethod=1 which (should ??) avoid the need for the ftp to open, that didnt work either, still just the same error message, <br><br>In despertaion we uncommented ftpname= thru to password, set ulmethod=0 but again all we get is, Cannot find FTP client.<br><br>Any ideas where we can go from here are more than welcome, i appologise if this should have been in a seperate thread as were using linux and not windows, but as the problem is the same it seemed like an idea to start with it here.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6596">Hunty</a> — Sun Aug 14, 2005 9:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-06-20T18:06:46-04:00</updated>

		<published>2005-06-20T18:06:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51139#p51139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51139#p51139"/>
		<title type="html"><![CDATA[CHATstats 3.1.2 everything works but ftp to website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51139#p51139"><![CDATA[
you can install it via the cygwin installer, under base there is which. just unselect all other packages or better... install the inet utils (under net), i doubt it would find any ftp without being any there <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Jun 20, 2005 6:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2005-06-19T08:56:54-04:00</updated>

		<published>2005-06-19T08:56:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51066#p51066</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51066#p51066"/>
		<title type="html"><![CDATA[CHATstats 3.1.2 everything works but ftp to website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51066#p51066"><![CDATA[
it is trying to locate the ftp client ("which" should return its path).<br>so either you replace "exec which ftp" with its path, or you grab a copy of "which" compiled for windows.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Sun Jun 19, 2005 8:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DallasD]]></name></author>
		<updated>2005-06-19T07:53:23-04:00</updated>

		<published>2005-06-19T07:53:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51062#p51062</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51062#p51062"/>
		<title type="html"><![CDATA[CHATstats 3.1.2 everything works but ftp to website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51062#p51062"><![CDATA[
I have managed to fix every error but one.  But i have gotten it to make the web pages on my system.  Does anyone think that they may be able to help me on this. It seems to br the FTP part of the script. The error is as follows:<br><br>#me# set errorInfo<br>Currently: couldn't execute "which": no such file or directory<br>Currently:     while executing<br>Currently: "exec which ftp"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6229">DallasD</a> — Sun Jun 19, 2005 7:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DallasD]]></name></author>
		<updated>2005-05-16T08:18:52-04:00</updated>

		<published>2005-05-16T08:18:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49538#p49538</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49538#p49538"/>
		<title type="html"><![CDATA[CHATstats 3.1.2 everything works but ftp to website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49538#p49538"><![CDATA[
Ok corrected the code to the following:<div class="codebox"><p>Code: </p><pre><code>if {$ullist != ""} {  switch -exact $cs(ulmethod) {   1 {foreach e $ullist {       if {[file exists $e]} {        file copy -force $e $cs(localfolder)        file delete -force $e       } else {putlog "CHATstats: Skipped moving $e, file not found."}      }     }   2 {set ftperror [catch {       set ftpid [open "$cs(ftpclient) -n $cs(ftpname) $cs(ftpport)" w]       puts $ftpid "$cs(username) $cs(password)"       foreach a $ullist {        if {[file exists $a]} {         puts $ftpid "put $a $cs(ftpfolder)[lindex [split $a "/"] end]"        } else {putlog "CHATstats: Skipped uploading $a, file not found."}       }       puts $ftpid "quit"       close $ftpid      }]      if {$ftperror} {putlog "CHATstats: An error occured while trying to use FTP."}      foreach a $ullist {file delete -force $a}     }  } }</code></pre></div>Now the error reads:<br><br>update #mychannel<br>Successfully updated webpages for #mychannel<br>[07:12] Tcl error in script for 'timer15':<br>[07:12] couldn't open "/Windrop/mychannel.html~new": no such file or directory<br> .set errorInfo<br>[07:13] #Me# set errorInfo<br>Currently: couldn't open "/Windrop/mychannel.html~new": no such file or directory<br>Currently:     while executing<br>Currently: "open $dir$file2~new w"<br>Currently:     (procedure "do_ques" line 25)<br>Currently:     invoked from within<br>Currently: "do_ques"<br><br>This erro i do not understand.  As far as i know i have nothing that points this script to the Windrop dir.  Now i really neew help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6229">DallasD</a> — Mon May 16, 2005 8:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DallasD]]></name></author>
		<updated>2005-05-16T07:54:41-04:00</updated>

		<published>2005-05-16T07:54:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49536#p49536</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49536#p49536"/>
		<title type="html"><![CDATA[CHATstats 3.1.2 everything works but ftp to website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49536#p49536"><![CDATA[
Correction:  The error is still coming up.<br><br>Currently: couldn't duplicate output handle: bad file number<br>Currently:     while executing<br>Currently: "open "|$cs(ftpclient) -n $cs(ftpname) $cs(ftpport)" w"<br><br>Now i really need some ideas.  I do not know what to do now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6229">DallasD</a> — Mon May 16, 2005 7:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DallasD]]></name></author>
		<updated>2005-05-16T06:39:36-04:00</updated>

		<published>2005-05-16T06:39:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49533#p49533</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49533#p49533"/>
		<title type="html"><![CDATA[CHATstats 3.1.2 everything works but ftp to website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49533#p49533"><![CDATA[
Thanks! The following is from the script.  I managed to stop the error by removing the "user " from the script.  But although this stops the error it still does not put the web pages on my site. <br><div class="codebox"><p>Code: </p><pre><code>switch -exact $cs(ulmethod) {   1 {foreach e $ullist {       if {[file exists $e]} {        file copy -force $e $cs(localfolder)        file delete -force $e       } else {putlog "CHATstats: Skipped moving $e, file not found."}      }     }   2 {set ftperror [catch {       set ftpid [open "|$cs(ftpclient) -n $cs(ftpname) $cs(ftpport)" w]       puts $ftpid "user $cs(username) $cs(password)"       foreach a $ullist {        if {[file exists $a]} {         puts $ftpid "put $a $cs(ftpfolder)[lindex [split $a "/"] end]"        } else {putlog "CHATstats: Skipped uploading $a, file not found."}       }       puts $ftpid "quit"       close $ftpid      }]</code></pre></div>I am really not sure where to go from here.  Any ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6229">DallasD</a> — Mon May 16, 2005 6:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-05-16T06:32:29-04:00</updated>

		<published>2005-05-16T06:32:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49531#p49531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49531#p49531"/>
		<title type="html"><![CDATA[CHATstats 3.1.2 everything works but ftp to website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49531#p49531"><![CDATA[
Ok looking at the script it seems to me that it is looking for an ftp program within a unix operating environment. As you are using a windrop it seems that it cant find the ftp program and cannot upload a file. <blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set cs(ftperror) [catch {set cs(ftpclient) [exec which ftp]}]; set cs(rehash) 1 if {$cs(ftperror) &amp;&amp; [file executable /usr/bin/ftp]} {set cs(ftpclient) "/usr/bin/ftp"; set cs(ftperror) 0} if {$cs(ftperror) &amp;&amp; [file executable /bin/ftp]} {set cs(ftpclient) "/bin/ftp"; set cs(ftperror) 0} if {$cs(ftperror) &amp;&amp; [info commands auto_execok] != ""} {  set cs(ftpclient) [auto_execok ftp] </code></pre></div></div></blockquote> Also there have been several posts over the past few months where users cannot get windrops to 'exec' any program outside of the eggdrop this could also be your problem. This all said and done doesn't help you much into fixing the problem and unfortunately I cant see any quick fix either.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Mon May 16, 2005 6:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DallasD]]></name></author>
		<updated>2005-05-16T06:10:48-04:00</updated>

		<published>2005-05-16T06:10:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49530#p49530</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49530#p49530"/>
		<title type="html"><![CDATA[CHATstats 3.1.2 everything works but ftp to website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49530#p49530"><![CDATA[
Yes i can ftp into my site that way.  for now i am manualy sending web pages to the site.  I just can not get the script to do it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6229">DallasD</a> — Mon May 16, 2005 6:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-05-16T06:00:46-04:00</updated>

		<published>2005-05-16T06:00:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49529#p49529</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49529#p49529"/>
		<title type="html"><![CDATA[CHATstats 3.1.2 everything works but ftp to website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49529#p49529"><![CDATA[
Can you manually ftp into your ftp account using 'cmd'? ie<div class="codebox"><p>Code: </p><pre><code>ftpopen www.yoursite.com 21enter usernameenter password</code></pre></div>If this works then we will have to look at what chatstats is trying todo more closely.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Mon May 16, 2005 6:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DallasD]]></name></author>
		<updated>2005-05-16T05:50:31-04:00</updated>

		<published>2005-05-16T05:50:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49527#p49527</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49527#p49527"/>
		<title type="html"><![CDATA[CHATstats 3.1.2 everything works but ftp to website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49527#p49527"><![CDATA[
Thanks for the idea. But alas even after making that change I still get the same responce.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6229">DallasD</a> — Mon May 16, 2005 5:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-05-16T05:38:02-04:00</updated>

		<published>2005-05-16T05:38:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49525#p49525</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49525#p49525"/>
		<title type="html"><![CDATA[CHATstats 3.1.2 everything works but ftp to website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49525#p49525"><![CDATA[
Try changing this<div class="codebox"><p>Code: </p><pre><code> ftpname=www.mysite.com/</code></pre></div> to the IP address of your ftp server and make surer there is no trailing /<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Mon May 16, 2005 5:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DallasD]]></name></author>
		<updated>2005-05-14T22:15:49-04:00</updated>

		<published>2005-05-14T22:15:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49475#p49475</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49475#p49475"/>
		<title type="html"><![CDATA[CHATstats 3.1.2 everything works but ftp to website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49475#p49475"><![CDATA[
I have managed to get CHATstats 3.1.2 to work in every way on my windrop, if i set it to publish the webpages it always fails.  I sure could use some help to figure this out.  I know it is going to be something simple.<br><br>i all was get "CHATstats: An error occured while trying to use FTP."<br>but if i set it to just make the web page and leave them alone it works fine.<br><br>Setup is as follows:<br><br>set cs(workdir) "E:/Documents/Webs/my_stats/"<br>set cs(trigger) "!"<br>set cs(idle) 900<br>set cs(dont) "fserv type trigger"<br>set cs(global) {<br> post=2<br> rankrange=10<br> timebalance=0<br> trimlimit=50<br> adinterval=90<br> adsite=<a href="http://www.mysite.com" class="postlink">http://www.mysite.com</a><br> update=5<br> htmsuffix=.htm<br> ulmethod=2<br> localfolder=E:/Documents/Webs/mysite/public_html<br> ftpname=<a href="http://www.mysite.com/" class="postlink">www.mysite.com/</a><br> ftpport=21<br> ftpfolder=/public_html/<br> username=me<br> password=123<br>}<br><br>if i do .set errorInfo after i get the error this is what i get:<br><br>09:01] CHATstats: An error occured while trying to use FTP.<br>.set errorInfo<br>[09:01] #Dallas_Dom# set errorInfo<br>Currently: couldn't duplicate output handle: bad file number<br>Currently:     while executing<br>Currently: "open "|$cs(ftpclient) -n $cs(ftpname) $cs(ftpport)" w"<br>Currently: couldn't duplicate output handle: bad file number<br><br>Can someone please tell me what i have done wrong or even how to make or get a script that will move the webpages to the site once this script makes them.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6229">DallasD</a> — Sat May 14, 2005 10:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
