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

	<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>2010-04-19T15:17:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-04-19T15:17:21-04:00</updated>

		<published>2010-04-19T15:17:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92877#p92877</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92877#p92877"/>
		<title type="html"><![CDATA[Error creating directory?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92877#p92877"><![CDATA[
There are two differences when a bash-script is started from the command line and using exec within eggdrop;<ul><li>The environment;<br>The bash-script will inherit the environment of the parent process, containing such settings as PATH, and similar. This becomes very prominent if you started your eggdrop through a cronjob - as this usually only provides the very most rudimentary environment. Try this from the partyline:<div class="codebox"><p>Code: </p><pre><code>.tcl array get ::env</code></pre></div>This should retrieve the full set of environment variables as seen by your eggdrop. Then compare that from using the "set" command from your bash-shell...</li><li>Current Working Directory;<br>This too is inherited from the parent process. Eggdrop's are usually started from within the directory where it was installed, while you most commonly use your shell directly from the home directory. If centerim cannot differentiate between these, I could very well see it throwing errors such as the earlier mentioned ones..</li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Apr 19, 2010 3:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DJCharlie]]></name></author>
		<updated>2010-04-18T19:44:13-04:00</updated>

		<published>2010-04-18T19:44:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92869#p92869</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92869#p92869"/>
		<title type="html"><![CDATA[Error creating directory?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92869#p92869"><![CDATA[
<blockquote class="uncited"><div>Unfortunately, I'm out of other ideas, the putserv tcl-command will not generate that error under any condition, and as you said you've tried ruling out each line of your bash-script, I frankly don't know where to look further other than re-checking everything over and over..</div></blockquote>Additionally, I just noticed that the "talk" line in epage.sh isn't being executed... Something screwy is definitely going on with it somewhere, because if I run epage.sh by itself, it executes with no errors.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10641">DJCharlie</a> — Sun Apr 18, 2010 7:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-04-18T19:13:33-04:00</updated>

		<published>2010-04-18T19:13:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92868#p92868</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92868#p92868"/>
		<title type="html"><![CDATA[Error creating directory?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92868#p92868"><![CDATA[
Just downloaded and compiled centerim myself. After attempting a similar message (though over icq), I managed to generate the exact same error message. That strengthens my suspisions of centerim. I also get the very same result if I launch it through a bash-shell.<br><br>I find it odd that ::errorInfo would be 0, as it should atleast hold the actual error message (+ extra information leading up to the error).<br><br>Unfortunately, I'm out of other ideas, the putserv tcl-command will not generate that error under any condition, and as you said you've tried ruling out each line of your bash-script, I frankly don't know where to look further other than re-checking everything over and over..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Apr 18, 2010 7:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DJCharlie]]></name></author>
		<updated>2010-04-18T18:49:41-04:00</updated>

		<published>2010-04-18T18:49:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92867#p92867</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92867#p92867"/>
		<title type="html"><![CDATA[Error creating directory?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92867#p92867"><![CDATA[
<blockquote class="uncited"><div>Try and get the value of ::errorInfo right after triggering the error. You might have to enable the .set or .tcl dcc partyline command (see your configfile for details on this), then type either ".set ::errorInfo" or ".tcl set ::errorInfo" after triggering the error.<br><br>My suspicion right now though, is that it's caused by the centerim command in your bash-script, possibly from being executed from your eggdrop directory. Just a guess right now though..</div></blockquote>No joy. The errorInfo commands (I tried both) just returned "0" as the response.<br><br>Commenting out the centerim command did no good either. Same with cutting out any of the other commands (individually) in the epage.sh script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10641">DJCharlie</a> — Sun Apr 18, 2010 6:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-04-18T18:29:50-04:00</updated>

		<published>2010-04-18T18:29:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92866#p92866</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92866#p92866"/>
		<title type="html"><![CDATA[Error creating directory?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92866#p92866"><![CDATA[
Try and get the value of ::errorInfo right after triggering the error. You might have to enable the .set or .tcl dcc partyline command (see your configfile for details on this), then type either ".set ::errorInfo" or ".tcl set ::errorInfo" after triggering the error.<br><br>My suspicion right now though, is that it's caused by the centerim command in your bash-script, possibly from being executed from your eggdrop directory. Just a guess right now though..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Apr 18, 2010 6:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DJCharlie]]></name></author>
		<updated>2010-04-18T16:24:39-04:00</updated>

		<published>2010-04-18T16:24:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92865#p92865</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92865#p92865"/>
		<title type="html"><![CDATA[Error creating directory?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92865#p92865"><![CDATA[
Afternoon all. I'm having a bit of trouble with a small script, and can't find the error I'm getting ANYWHERE else.<br><br>The error is:<br><div class="codebox"><p>Code: </p><pre><code>[16:16] Tcl error [pub_epage]: event sending error: error creating directory for the contact</code></pre></div>The section of the script in question is:<br><div class="codebox"><p>Code: </p><pre><code>proc pub_epage {nick uhost hand chan txt} {   putserv "PRIVMSG #KJSR :Emergency Pager activated! Someone will assist you momentarily."   putserv "PRIVMSG MemoServ@services.dal.net :SEND DJCharlie You were paged by $nick"   set pagestatus [exec /usr/local/autodj/eggdrop/scripts/epage.sh]}</code></pre></div>And the shell script (epage.sh) called by the TCL script is:<br><div class="codebox"><p>Code: </p><pre><code>#!/bin/bashecho "You are needed in the Live Chat" | centerim -s msg -p yahoo -t myemailaddress@mydomain.comtalk "can someone come to the live chat please"echo "Help needed in LiveChat" | mail -s "LiveChat" xxxxxxxxx@txt.att.netexit</code></pre></div>Any ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10641">DJCharlie</a> — Sun Apr 18, 2010 4:24 pm</p><hr />
]]></content>
	</entry>
	</feed>
