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

	<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>2004-02-09T08:12:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2004-02-09T08:12:13-04:00</updated>

		<published>2004-02-09T08:12:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33370#p33370</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33370#p33370"/>
		<title type="html"><![CDATA[start a process on startup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33370#p33370"><![CDATA[
<blockquote class="uncited"><div>bind evnt &lt;flags&gt; &lt;type&gt; &lt;proc&gt;<br>proc-name &lt;type&gt;<br><br>sighup<br> called on a kill -HUP &lt;pid&gt;<br> <br>sigterm<br> called on a kill -TERM &lt;pid&gt;<br> <br>sigill<br> called on a kill -ILL &lt;pid&gt;<br> <br>sigquit<br> called on a kill -QUIT &lt;pid&gt;<br> <br>save<br> called when the userfile is saved<br> <br>rehash<br> called just after a rehash<br> <br>prerehash<br> called just before a rehash<br> <br>prerestart<br> called just before a restart<br> <br>logfile<br> called when the logs are switched daily<br> <br>loaded<br> called when the bot is done loading<br> <br><br>connect-server<br> called just before we connect to an IRC server<br> <br>init-server<br> called when we actually get on our IRC server<br> <br>disconnect-server<br> called when we disconnect from our IRC server<br> </div></blockquote>so with the proc called by init-server you would also connect to the dbase when you are reconnecting to a server. so either use loaded or add a check if the bot is allready connected to the database<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Mon Feb 09, 2004 8:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2004-02-09T05:10:44-04:00</updated>

		<published>2004-02-09T05:10:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33362#p33362</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33362#p33362"/>
		<title type="html"><![CDATA[start a process on startup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33362#p33362"><![CDATA[
appreciated thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Mon Feb 09, 2004 5:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2004-01-21T09:57:51-04:00</updated>

		<published>2004-01-21T09:57:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32738#p32738</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32738#p32738"/>
		<title type="html"><![CDATA[start a process on startup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32738#p32738"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind evnt - init-server my:connectproc my:connect init-server {# Code for connecting to mysql goes here  }</code></pre></div>Try this  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Wed Jan 21, 2004 9:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Massacre]]></name></author>
		<updated>2004-01-21T05:53:31-04:00</updated>

		<published>2004-01-21T05:53:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32728#p32728</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32728#p32728"/>
		<title type="html"><![CDATA[start a process on startup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32728#p32728"><![CDATA[
I think if you just put the init code straight into a tcl script file, not in a proc then it will be run when the script is loaded, which it will be when the bot is started.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2880">Massacre</a> — Wed Jan 21, 2004 5:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2004-01-12T19:53:10-04:00</updated>

		<published>2004-01-12T19:53:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32473#p32473</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32473#p32473"/>
		<title type="html"><![CDATA[start a process on startup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32473#p32473"><![CDATA[
I have a bot that uses mysql but to do so when it first comes online I have to tell it to connect to the sql. <br>Is there anyway to have the bot do this automatically?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Mon Jan 12, 2004 7:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
