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

	<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>2008-01-17T02:20:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2008-01-17T02:20:44-04:00</updated>

		<published>2008-01-17T02:20:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80143#p80143</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80143#p80143"/>
		<title type="html"><![CDATA[pisg-new.tcl for windrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80143#p80143"><![CDATA[
I know this isn't a new topic, but my problem/question is, I got a .bat file, working 100% when I click it, all is generated and uploaded, however, I just found this script pisg-new.tcl, and thought I could then execute my .bat file through it, but no, here is the script:<br><div class="codebox"><p>Code: </p><pre><code>#This is a rewrite of pisg.tcl so now when people request !stats#If it is not the $statsnick requesting it, it will just show the url and not generate the logs#also the $statsexe setting goes to a bash script i have made to generate and upload the logs via ftp#to the directory that you set in generate_logs##irc.bsdaxis.net #BSDAxis#Trip-Outset statsexe "d:/server/eggdrop/pisg/pisg.bat"set statsurl "http://******.org/stats/"set statschan "#******"set statsflags "nm"set statstime "120"set statsnick "StatsBot"bind pub $statsflags !stats pub:statsgenproc pub:statsgen {nick host hand chan arg} {        global statsurl statschan statsexe statsnick        if {$nick != $statsnick} {        putlog "$nick Requested Stats"        append out "PRIVMSG $statschan :\002Stats Available At:\002 $statsurl"        } else {        putlog "Generating Stats..."        exec $statsexe        append out "PRIVMSG $statschan :\002Stats Updated:\002 $statsurl"        putlog "Stats Updated."        }        puthelp $out}proc statstimer {} {        global statsexe statsurl statschan statstime        puthelp "PRIVMSG $statschan : \002Stats Updated:\002 $statsurl"        timer $statstime statstimer}if {![info exists {statsset}]} {  set statsset 1  timer 2 statstimer}putlog "pisg-new.tcl 1.0 By Trip-Out Loaded"</code></pre></div>And when I type !stats I get the famous error:<br><div class="codebox"><p>Code: </p><pre><code>[07:18:33] &lt;StatsBot [07:18] Tcl error [pub:statsgen]: couldn't create error file for command: no such file or directory</code></pre></div>I've search alot, obviously not good enough, as I am totally lost<br><br>Any help would be nice.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Thu Jan 17, 2008 2:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2007-06-23T22:48:10-04:00</updated>

		<published>2007-06-23T22:48:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73852#p73852</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73852#p73852"/>
		<title type="html"><![CDATA[pisg-new.tcl for windrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73852#p73852"><![CDATA[
the problem is the perl in generate_logs..my bad for not catching this sooner wasn't aware what was actually inside that file.<blockquote class="uncited"><div>#!/usr/local/bin/bash<br>#<br>#Your PISG executable location<br>PISG_DIR="/home/trip/pisg-0.67/pisg"<br>...<br>#DO NO EDIT BELOW HERE<br><br>$PISG_DIR psig.cfg<br><br>ftp -Vu ftp://$FTP_USER:$FTP_PASS@$FTP_HOST/$FTP_DIR $INDEX_FILE</div></blockquote>something windrop cannot do like an actual eggdrop. It's already been discussed in <a href="http://forum.egghelp.org/viewtopic.php?p=50393" class="postlink">this topic</a> and <a href="http://forum.egghelp.org/viewtopic.php?p=47205" class="postlink">this one</a>.<br><br>maybe this <a href="http://www.mirc-egg.net/?name=EZCMS&amp;menu=14&amp;page_id=62&amp;menu=501" class="postlink">helps</a>?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Jun 23, 2007 10:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-06-23T20:46:24-04:00</updated>

		<published>2007-06-23T20:46:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73844#p73844</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73844#p73844"/>
		<title type="html"><![CDATA[pisg-new.tcl for windrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73844#p73844"><![CDATA[
$statsexe points to a Unix command?<br><br>If this is so then you need to find a port of that command and pop it into the main windrop directory.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Jun 23, 2007 8:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[testebr]]></name></author>
		<updated>2007-06-23T20:39:09-04:00</updated>

		<published>2007-06-23T20:39:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73843#p73843</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73843#p73843"/>
		<title type="html"><![CDATA[pisg-new.tcl for windrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73843#p73843"><![CDATA[
[20:35] Tcl error [pub:statsgen]: couldn't create error file for command: no such file or directory<br><br>.set errorInfo<br><br>[20:35] #channel# set errorInfo<br>[21:35:40] &lt;bot&gt; Currently: couldn't create error file for command: no such file or directory<br>[21:35:40] &lt;bot&gt; Currently:     while executing<br>[21:35:40] &lt;bot&gt; Currently: "exec $statsexe"<br>[21:35:40] &lt;bot&gt; Currently:     (procedure "pub:statsgen" line <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><br>[21:35:40] &lt;bot&gt; Currently:     invoked from within<br>[21:35:40] &lt;bot&gt; Currently: "pub:statsgen $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"<br><br>------------<br><br>"exec $statsexe" it is an unix command like, if I install the Cygwin, will fix the problem?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7055">testebr</a> — Sat Jun 23, 2007 8:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-06-23T20:15:30-04:00</updated>

		<published>2007-06-23T20:15:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73839#p73839</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73839#p73839"/>
		<title type="html"><![CDATA[pisg-new.tcl for windrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73839#p73839"><![CDATA[
Try:<div class="codebox"><p>Code: </p><pre><code>set statsexe "./scripts/generate_logs"</code></pre></div>Bear in mind Windrop cannot run every Tcl script there is. Also remember that as Windrop runs within a <a href="http://www.cygwin.com/" class="postlink">Cygwin</a> environment, Unix naming conventions apply.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Jun 23, 2007 8:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[testebr]]></name></author>
		<updated>2007-06-23T19:20:51-04:00</updated>

		<published>2007-06-23T19:20:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73831#p73831</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73831#p73831"/>
		<title type="html"><![CDATA[pisg-new.tcl for windrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73831#p73831"><![CDATA[
<blockquote class="uncited"><div>[20:19:50] &lt;!Me !stats<br>[20:19:54] &lt;!Bot&gt; couldn't create error file for command: no such file or directory</div></blockquote>Actual config:<br><br>set statsexe "c:/windrop/scripts/generate_logs"<br><br>How to fix it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7055">testebr</a> — Sat Jun 23, 2007 7:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2007-06-23T15:55:38-04:00</updated>

		<published>2007-06-23T15:55:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73826#p73826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73826#p73826"/>
		<title type="html"><![CDATA[pisg-new.tcl for windrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73826#p73826"><![CDATA[
Dunno if this runs under windrop, but it looks like it should:<br><br>----contents of pisg-new.zip<br>README.TXT<br>pisg-new.tcl<br>generate_logs<br><br>----config of pisg-new.tcl<br>set statsexe "~/generate_logs"<br>set statsurl "<a href="http://www.bsdaxis.net/stats" class="postlink">http://www.bsdaxis.net/stats</a>"<br>set statschan "#BSDAxis"<br>set statsflags "nm"<br>set statstime "120"<br>set statsnick "Trip-Out"<br><div class="codebox"><p>Code: </p><pre><code>        } else {        putlog "Generating Stats..."        catch { exec $statsexe } error          if {$error == ""} {            append out "PRIVMSG $statschan :\002Stats Updated:\002 $statsurl"            putlog "Stats Updated."          } else {            set out "PRIVMSG $statschan :$error"          }        }</code></pre></div>The code above is to add error detection, so the script will report it as output rather than creating tcl errors.  Your problem is most likely your settings of statsexe, and not pointing it to where generate_logs is located within your windrop.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Jun 23, 2007 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[testebr]]></name></author>
		<updated>2007-06-23T13:19:17-04:00</updated>

		<published>2007-06-23T13:19:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73825#p73825</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73825#p73825"/>
		<title type="html"><![CDATA[pisg-new.tcl for windrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73825#p73825"><![CDATA[
Hi,<br><br>How to make this script to work with Windrop:<br><br><a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=1291" class="postlink">http://www.egghelp.org/cgi-bin/tcl_arch ... ad&amp;id=1291</a><br><br>the error message is:<br><br>Tcl error [pub:statsgen]: couldn't create error file for command: no such file or directory<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7055">testebr</a> — Sat Jun 23, 2007 1:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
