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

	<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-04-19T19:44:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-19T19:44:44-04:00</updated>

		<published>2005-04-19T19:44:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48325#p48325</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48325#p48325"/>
		<title type="html"><![CDATA[crontab.tcl ? is it possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48325#p48325"><![CDATA[
TCL-Commands.doc -&gt; BIND -&gt; time<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Tue Apr 19, 2005 7:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thunderdome]]></name></author>
		<updated>2005-04-19T18:33:55-04:00</updated>

		<published>2005-04-19T18:33:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48321#p48321</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48321#p48321"/>
		<title type="html"><![CDATA[crontab.tcl ? is it possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48321#p48321"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>Tcl error [execution]: wrong # args: should be "execution nick uhost hand chan"</code></pre></div>it gives me this error....<br><br><br>and here:<br><br>home/nf/pisg/pisg<br><br>the pisg in the end... how should the file be?<br>I have something like this:<br><br><div class="codebox"><p>Code: </p><pre><code>#!/bin/sh cd /home/shellname/IRCStats-1.0/./ircstats /home/shellname/eggie/scripts/logs/blabla.log ircstats.cfg</code></pre></div><br>is all this correct? What am I doing wrong?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6079">Thunderdome</a> — Tue Apr 19, 2005 6:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[the_crow]]></name></author>
		<updated>2005-04-19T15:38:10-04:00</updated>

		<published>2005-04-19T15:38:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48317#p48317</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48317#p48317"/>
		<title type="html"><![CDATA[crontab.tcl ? is it possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48317#p48317"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set pisgexe "/home/nf/pisg/pisg"bind time - "00 * * * *" executionproc execution {nick uhost hand chan} {        global pisgexe        eval exec $pisgexe}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2778">the_crow</a> — Tue Apr 19, 2005 3:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thunderdome]]></name></author>
		<updated>2005-04-19T12:16:06-04:00</updated>

		<published>2005-04-19T12:16:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48310#p48310</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48310#p48310"/>
		<title type="html"><![CDATA[crontab.tcl ? is it possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48310#p48310"><![CDATA[
would you be kind enough to make me the code? <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=6079">Thunderdome</a> — Tue Apr 19, 2005 12:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-04-19T11:55:09-04:00</updated>

		<published>2005-04-19T11:55:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48309#p48309</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48309#p48309"/>
		<title type="html"><![CDATA[crontab.tcl ? is it possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48309#p48309"><![CDATA[
use bind time<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Tue Apr 19, 2005 11:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thunderdome]]></name></author>
		<updated>2005-04-19T11:40:16-04:00</updated>

		<published>2005-04-19T11:40:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48308#p48308</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48308#p48308"/>
		<title type="html"><![CDATA[crontab.tcl ? is it possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48308#p48308"><![CDATA[
hum.... But if I want to execute something like "./ircstats some.conf some.log" at 25 minutes then 45 minutes, how shall I do?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6079">Thunderdome</a> — Tue Apr 19, 2005 11:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-19T01:26:52-04:00</updated>

		<published>2005-04-19T01:26:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48292#p48292</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48292#p48292"/>
		<title type="html"><![CDATA[crontab.tcl ? is it possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48292#p48292"><![CDATA[
the pisgurl is only used to announce it to the channel, which is suppsed to point to the html/php which content/source has been just updated by the called pearl script.<br>depending on what you execute you might have to call bash like "exec /bin/bash -c \"bla\""<br><br>PS: don't tell me you get this error:<br>Tcl error: couldn't duplicate input handle: bad file number<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Tue Apr 19, 2005 1:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thunderdome]]></name></author>
		<updated>2005-04-18T19:30:46-04:00</updated>

		<published>2005-04-18T19:30:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48288#p48288</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48288#p48288"/>
		<title type="html"><![CDATA[crontab.tcl ? is it possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48288#p48288"><![CDATA[
does not seem to work...<br>I even made<br><div class="codebox"><p>Code: </p><pre><code>global pisgurl pisgexe</code></pre></div>with pisgurl as the log file address and pisgexe as the cfg address like in ./ircstats logfile.log config.cfg<br><br>I used the full address for the files... :\<br>Am I missing something?[/quote]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6079">Thunderdome</a> — Mon Apr 18, 2005 7:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-18T18:30:35-04:00</updated>

		<published>2005-04-18T18:30:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48285#p48285</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48285#p48285"/>
		<title type="html"><![CDATA[crontab.tcl ? is it possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48285#p48285"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set pisgexe "/home/nf/pisg/pisg"...if {[catch {exec $pisgexe} error]} {  error handle here} else {  success handle here}</code></pre></div>How can I change this for another process? (yes, I don't know much about tcl) :\</div></blockquote>thats where the executable is called.<br>the var name "error" will store whatever the executable has returned.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Apr 18, 2005 6:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thunderdome]]></name></author>
		<updated>2005-04-18T18:25:16-04:00</updated>

		<published>2005-04-18T18:25:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48284#p48284</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48284#p48284"/>
		<title type="html"><![CDATA[crontab.tcl ? is it possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48284#p48284"><![CDATA[
the problem is that I don't get it... I have a script that comes with pisg that does this well, but I dunno how to adapt it...<br><div class="codebox"><p>Code: </p><pre><code>#pisg.tcl v0.15 by HM2K - auto stats script for pisg (perl irc statistics generator)#based on a script by Argananset pisgver "0.15"#Location of pisg execuitable perl scriptset pisgexe "/home/nf/pisg/pisg"#URL of the generated statsset pisgurl "http://stats.nemesisforce.com/"#channel that the stats are generated forset pisgchan "#nemesisforce"#Users with these flags can operate this functionset pisgflags "nm"#How often the stats will be updated in minutes, ie: 30 - stats will be updated every 30 minutesset pisgtime "30"bind pub $pisgflags !stats pub:pisgcmdproc pub:pisgcmd {nick host hand chan arg} {global pisgexe pisgurl pisgchanappend out "PRIVMSG $pisgchan :" ; if {[catch {exec $pisgexe} error]} { append out "$pisgexe an error occured: [string totitle $error]" } else { append out "Stats Updated: $pisgurl" }puthelp $out}proc pisgcmd_timer {} {global pisgexe pisgurl pisgchan pisgtimeappend out "PRIVMSG $pisgchan :" ; if {[catch {exec $pisgexe} error]} { append out "$pisgexe an error occured: [string totitle $error]" } else { append out "Stats Updated: $pisgurl" }puthelp $outtimer $pisgtime pisgcmd_timer}if {![info exists {pisgset}]} {  set pisgset 1  timer 2 pisgcmd_timer}putlog "pisg.tcl $pisgver loaded"</code></pre></div>How can I change this for another process? (yes, I don't know much about tcl) :\<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6079">Thunderdome</a> — Mon Apr 18, 2005 6:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-18T18:09:24-04:00</updated>

		<published>2005-04-18T18:09:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48282#p48282</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48282#p48282"/>
		<title type="html"><![CDATA[crontab.tcl ? is it possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48282#p48282"><![CDATA[
you can either use "exec bla" (not that bot will be stucked until the process terminates) or "open |bla" to open a file handle to that console (you use puts and gets to interact with whatever you started) but more important is, the bot won't wait till the process is terminated and will continue immidiadly.<br>You can read more about these in "The Manual" ^-^.<br>for binding for time you should read TCL-Commands.doc in the BIND section.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Apr 18, 2005 6:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thunderdome]]></name></author>
		<updated>2005-04-18T17:37:45-04:00</updated>

		<published>2005-04-18T17:37:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48280#p48280</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48280#p48280"/>
		<title type="html"><![CDATA[crontab.tcl ? is it possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48280#p48280"><![CDATA[
Hello!<br>I would like to know how can I make a tcl in which the bot starts a process at certain times... kinda like a crontab using the eggdrop... (for people with no crontab in their shell).<br><br>for example:<br><br>./process blabla.conf<br><br>20 * * * blablbahajahah<br>45 * * * blablbahajahah<br>57 * * * blablbahajahah<br><br><br>I think you get my point.<br>greetz and thanks.  <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=6079">Thunderdome</a> — Mon Apr 18, 2005 5:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
