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

	<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-12-26T17:32:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2008-12-26T17:32:57-04:00</updated>

		<published>2008-12-26T17:32:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86533#p86533</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86533#p86533"/>
		<title type="html"><![CDATA[unload]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86533#p86533"><![CDATA[
The answer depends entirely on how/why the bot is forced to shutdown. For example, a kill -9 &lt;pid&gt; from the bot's shell is immediate and would not allow time to execute code.<br><br>Generally, the EVNT bind is used to trigger Tcl code with a number of available types associated with shutdown (see tcl-commands.html in your bot installation).<br><br>sighup = kill -HUP &lt;pid&gt; OR kill -1 &lt;pid&gt; (hangup process)<br>sigill = kill -ILL &lt;pid&gt; OR kill -4 &lt;pid&gt; (illegal instruction)<br>sigquit = kill -QUIT &lt;pid&gt; OR kill -3 &lt;pid&gt; (quit process)<br>sigterm = kill -TERM &lt;pid&gt; OR kill -15 &lt;pid&gt; (terminate nicely)<br><br>I think I have the correct numeric kill signals. It is not clear in tcl-commands.html<br><br>I have never used these EVNT bind types, so I am not aware to what extent they would allow execution of Tcl before shutdown, neither am I aware of the shutdown type resulting from say the command .die in the partyline. Terminate nicely I would hope.<br><br>I can only suggest you experiment with them. Sorry I can't be of any further assistance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Fri Dec 26, 2008 5:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x-treem]]></name></author>
		<updated>2008-12-19T12:58:16-04:00</updated>

		<published>2008-12-19T12:58:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86374#p86374</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86374#p86374"/>
		<title type="html"><![CDATA[unload]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86374#p86374"><![CDATA[
is there a way to link to an event that pops when bot is forced to shutdown? for instance if i'm connected to somewhere to let a script clean up things and disconnect prior to close.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10064">x-treem</a> — Fri Dec 19, 2008 12:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
