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

	<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-10-19T10:34:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[kameelperdza]]></name></author>
		<updated>2010-10-19T10:34:52-04:00</updated>

		<published>2010-10-19T10:34:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94806#p94806</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94806#p94806"/>
		<title type="html"><![CDATA[re]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94806#p94806"><![CDATA[
Hi i also have the problem that says invalid command name "botdir"<br><br>I have checked and double checked, i also tried to edit the botchk file with vim.<br><br>What else can i try?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11395">kameelperdza</a> — Tue Oct 19, 2010 10:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Slaktarn]]></name></author>
		<updated>2010-02-25T06:46:26-04:00</updated>

		<published>2010-02-25T06:46:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92234#p92234</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92234#p92234"/>
		<title type="html"><![CDATA[Crontab problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92234#p92234"><![CDATA[
<blockquote class="uncited"><div>slaktarn:<br>That error message is generated because you try to start your eggdrop using the botchk-script as a config-file. Not the way to do it...<br><br>Re-read tsukeh's post. First step is to see if your config-file is executable (and the #! magic number is set up properly).<br>If this works, run the botchk-script manually, as the bash-script it is, and track any and all errors thrown.<br><br>In neither of the above tests should you prefix the comand/file with the eggdrop binary.<br><br>As a final resort, drop the pipe-redirects from the cron-job, and you should recieve an email whenever the botchk-script is run and something happened. This should atleast provide some hints to what's setup incorrectly...</div></blockquote>Im relly sorry but don´t get a [censored] of any of what you ppl taking about i searched around a bit more and find out that you never shuld use a Windows editor to edit your files. Try to reedit the botchk file in vi editor and it seems to work fine. Now i just have a last question for you ppl. When it starts up it starts whit Dev.conf insted of Dev it it the way it shuld be it dosent matter relly just a thing i note.<br><div class="codebox"><p>Code: </p><pre><code>botscript="Dev.conf" changed tobotscript="./Dev Dev.conf"</code></pre></div>That sloved the thing i wrote befor that my bot start whit Dev.conf know it starts whit the binary insted of the conf file.<br><br>Hoever i will thx everyone in this section that try to help me slove this!<br>Thx alot and the prob sloved i wuld prob figure all this out my self it i not was so stupid to edit all conf file in Windows. It was the real problem. Else its relly easy to set up botchk file. To anyone else that have problem whit it! Never edit in Windows use vi editor in linux<br><br>Mvh Slaktarn<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8963">Slaktarn</a> — Thu Feb 25, 2010 6:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-02-24T13:33:59-04:00</updated>

		<published>2010-02-24T13:33:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92228#p92228</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92228#p92228"/>
		<title type="html"><![CDATA[Crontab problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92228#p92228"><![CDATA[
slaktarn:<br>That error message is generated because you try to start your eggdrop using the botchk-script as a config-file. Not the way to do it...<br><br>Re-read tsukeh's post. First step is to see if your config-file is executable (and the #! magic number is set up properly).<br>If this works, run the botchk-script manually, as the bash-script it is, and track any and all errors thrown.<br><br>In neither of the above tests should you prefix the comand/file with the eggdrop binary.<br><br>As a final resort, drop the pipe-redirects from the cron-job, and you should recieve an email whenever the botchk-script is run and something happened. This should atleast provide some hints to what's setup incorrectly...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Feb 24, 2010 1:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Slaktarn]]></name></author>
		<updated>2010-02-24T04:08:02-04:00</updated>

		<published>2010-02-24T04:08:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92227#p92227</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92227#p92227"/>
		<title type="html"><![CDATA[Crontab problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92227#p92227"><![CDATA[
<blockquote class="uncited"><div>After killing your eggdrop (if it's running) try to start it like:<br><div class="codebox"><p>Code: </p><pre><code>./Dev.conf</code></pre></div>If eggdrop starts kill it and then try to run botchk manually:<br><div class="codebox"><p>Code: </p><pre><code>./Dev.botchk</code></pre></div>If eggdrop starts again, those configs should be ok.</div></blockquote>Strange it says its in wrong dir but it isent. And the first option work<br><div class="codebox"><p>Code: </p><pre><code>mynick@hades ~/eggdrop $ ./Dev Dev.botchkEggdrop v1.6.20+checkconflags (C) 1997 Robey Pointer (C) 2008 Eggheads[09:21] --- Loading eggdrop v1.6.20+checkconflags (Wed Feb 24 2010)[09:21] Tcl error in file 'Dev.botchk':[09:21] invalid command name "botdir="/home/mynick/eggdrop""    while executing"botdir="/home/mynick/eggdrop""    (file "Dev.botchk" line 22)[09:21] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8963">Slaktarn</a> — Wed Feb 24, 2010 4:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tsukeh]]></name></author>
		<updated>2010-02-23T12:53:51-04:00</updated>

		<published>2010-02-23T12:53:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92213#p92213</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92213#p92213"/>
		<title type="html"><![CDATA[Crontab problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92213#p92213"><![CDATA[
After killing your eggdrop (if it's running) try to start it like:<br><div class="codebox"><p>Code: </p><pre><code>./Dev.conf</code></pre></div>If eggdrop starts kill it and then try to run botchk manually:<br><div class="codebox"><p>Code: </p><pre><code>./Dev.botchk</code></pre></div>If eggdrop starts again, those configs should be ok.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5911">tsukeh</a> — Tue Feb 23, 2010 12:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Slaktarn]]></name></author>
		<updated>2010-02-23T03:42:09-04:00</updated>

		<published>2010-02-23T03:42:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92207#p92207</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92207#p92207"/>
		<title type="html"><![CDATA[Crontab problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92207#p92207"><![CDATA[
<blockquote class="uncited"><div><a href="http://www.egghelp.org/setup.htm#botchk" class="postlink">Editing the botchk file</a>.</div></blockquote>I have read it if i wuld understand it i wuld not ask here?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8963">Slaktarn</a> — Tue Feb 23, 2010 3:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2010-02-22T17:00:59-04:00</updated>

		<published>2010-02-22T17:00:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92204#p92204</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92204#p92204"/>
		<title type="html"><![CDATA[Crontab problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92204#p92204"><![CDATA[
<a href="http://www.egghelp.org/setup.htm#botchk" class="postlink">Editing the botchk file</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Feb 22, 2010 5:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Slaktarn]]></name></author>
		<updated>2010-02-22T09:11:43-04:00</updated>

		<published>2010-02-22T09:11:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92200#p92200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92200#p92200"/>
		<title type="html"><![CDATA[Crontab problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92200#p92200"><![CDATA[
I did this 4 stuff you told me to do but it still dosent start<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8963">Slaktarn</a> — Mon Feb 22, 2010 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tsukeh]]></name></author>
		<updated>2010-02-22T08:52:19-04:00</updated>

		<published>2010-02-22T08:52:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92199#p92199</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92199#p92199"/>
		<title type="html"><![CDATA[Crontab problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92199#p92199"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># change this to the name of your bot's config file (capitalization COUNTS):botscript="./Dev Dev.conf"</code></pre></div>I bet your config is "Dev.conf" and not "./Dev Dev.conf" ?<br><br>also make sure first line of your config points to "eggdrop" binary:<div class="codebox"><p>Code: </p><pre><code>#! /home/mynick/eggdrop/eggdrop</code></pre></div>Dev.botchk and Dev.conf needs to have correct permissions:<br><br>chmod u+x Dev.botchk<br>chmod u+x Dev.conf<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5911">tsukeh</a> — Mon Feb 22, 2010 8:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Slaktarn]]></name></author>
		<updated>2010-02-22T06:59:14-04:00</updated>

		<published>2010-02-22T06:59:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92198#p92198</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92198#p92198"/>
		<title type="html"><![CDATA[Crontab problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92198#p92198"><![CDATA[
I can´t get the crontab to work i have did like this btw crontab is under eggdrop maindir and named to Dev.botchk<br><div class="codebox"><p>Code: </p><pre><code>0,10,20,30,40,50 * * * * /home/mynick/eggdrop/Dev.botchk &gt;/dev/null 2&gt;&amp;1</code></pre></div><div class="codebox"><p>Code: </p><pre><code>#! /bin/sh## botchk## $Id: botchk,v 1.6 2002-02-27 18:21:46 guppy Exp $## This is a script suitable for use in a crontab.  It checks to make sure# your bot is running.  YOU NEED A SEPARATE CRON JOB FOR EACH BOT.  If your# bot isn't found, it'll try to start it back up.## You'll need to edit this script for your bot.## To check for your bot every 10 minutes, put the following line in your# crontab:#    0,10,20,30,40,50 * * * *   /home/mydir/mybot/botchk# And if you don't want to get email from crontab when it checks you bot,# put the following in your crontab:#    0,10,20,30,40,50 * * * *   /home/mydir/mybot/botchk &gt;/dev/null 2&gt;&amp;1## change this to the directory you run your bot from (capitalization COUNTS):botdir="/home/mynick/eggdrop"# change this to the name of your bot's config file (capitalization COUNTS):botscript="./Dev Dev.conf"# change this to the botnet-nick of your bot (capitalization COUNTS):botname="Dev"# change this to the name of your bot's userfile (capitalization COUNTS):userfile="Dev.user"# change this to the name of your bot's pidfile (capitalization COUNTS):pidfile="Dev.pid"########## you probably don't need to change anything below here ##########cd $botdir# is there a pid file?if test -r $pidfilethen  # there is a pid file -- is it current?  botpid=`cat $pidfile`  if `kill -CHLD $botpid &gt;/dev/null 2&gt;&amp;1`  then    # it's still going -- back out quietly    exit 0  fi  echo ""  echo "Stale $pidfile file, erasing..."  rm -f $pidfilefiif test -r CANTSTART.$botnamethen  if test -r $userfile || test -r $userfile~new || test -r $userfile~bak  then    echo ""    echo "Userfile found, removing check file 'CANTSTART.$botname'..."    rm -f CANTSTART.$botname  fifi# test if we have run botchk previously and didn't find a userfileif test ! -f CANTSTART.$botnamethen  echo ""  echo "Couldn't find bot '$botname' running, reloading..."  echo ""  # check for userfile and reload bot if found  if test -r $userfile  then    # It's there, load the bot    ./$botscript    exit 0  else    if test -r $userfile~new    then      # Bot f*@!ed up while saving the userfile last time.  Move it over.      echo "Userfile missing.  Using last saved userfile..."      mv -f $userfile~new $userfile      ./$botscript      exit 0    else      if test -r $userfile~bak      then        # Userfile is missing, use backup userfile.        echo "Userfile missing.  Using backup userfile..."        cp -f $userfile~bak $userfile        ./$botscript        exit 0      else        # Well, nothing to work with...        echo "No userfile.  Could not reload the bot..."        echo "no userfile" &gt; CANTSTART.$botname        exit 1      fi    fi  fifiexit 0</code></pre></div>Anyone that knows what the problem is or see anything wrong in here?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8963">Slaktarn</a> — Mon Feb 22, 2010 6:59 am</p><hr />
]]></content>
	</entry>
	</feed>
