This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

crontab

Old posts that have not been replied to for several years.
Locked
T
Timberline

Post by Timberline »

I need help in setting up my crontab. So it will look for eggie every ten minutes or so because i am loosing connection to my host on shell.Any help would be greatly appreciated. Thanxs
m
masskilla
Op
Posts: 172
Joined: Wed Oct 03, 2001 8:00 pm
Location: Croatia

Post by masskilla »


Use the script(s) in scripts/ dir, 'botchk' and 'autobotchk'.


MaSsKilla

#eggdrop
Undernet
C
CafeiN

Post by CafeiN »

You first need to locate your botchk file. Its either in your bots main directory or in the newer versions its in your bots main directory under the sub directory 'scripts'. Once you've located the file, you need to change a few things in it to make it work, type: pico botchk
This will open a notepad type editor, which you can easily get around and edit these 4 items:

botdir="/usr/home/yourlogin/eggdropX.X.X"
# change this to the name of your bot's script in that directory:
botscript="eggdrop eggdrop.conf"
# change this to the nickname of your bot (capitalization COUNTS)
botname="BotNick"
# change this to the name of your bot's userfile (capitalization COUNTS)
userfile="Bot.user"

Once yoy have edited those fields save your botchk file by holding CTRL and pressing O, then exit out of the editor by holding CTRL and pressing X.
Now that you have edit the botchk script, its time to add it to crontab, type:
setenv EDITOR "pico"
crontab -e
This once again opens up the pico editor, however this time you are editing a special crontab file. You need to add the following line:
0,10,20,30,40,50 * * * * /usr/home/yourlogin/eggdropX.X.X/scripts/botchk >/dev/null 2>&1
Replace the above path with the full path to your botchk file. Now save the file and quit the editor as done before. It will say:
crontab: installing new crontab
Now your bot is crontabed and will be restarted incase of problems!

User avatar
Souperman
Halfop
Posts: 69
Joined: Sat Feb 02, 2002 8:00 pm
Location: Cape Town, South Africa
Contact:

Post by Souperman »

cd ~/eggdrop
cp scripts/autobotchk .
./autobotchk nameofconfigfile -noemail -10
m
masskilla
Op
Posts: 172
Joined: Wed Oct 03, 2001 8:00 pm
Location: Croatia

Post by masskilla »

Or you can go and read all that by yourself.
*hides*
Just an idea =)



_________________
MaSsKilla

#eggdrop
Undernet

<font size=-1>[ This Message was edited by: masskilla on 2002-03-24 11:15 ]</font>
B
Blade

Post by Blade »

RTFM!
s
soulm4t3

Still Cant Run botchk

Post by soulm4t3 »

I did everything as describe above, but i still get errors saying

File or Directory Not Found

My botchk configuration as as follow :-

# change this to the directory you run your bot from:
botdir="/home/users/soulm4te/eggdrop1.6.6/eggdrop"

# change this to the name of your bot's script in that directory:
botscript="eggdrop soulm4t3.conf"

# change this to the nickname of your bot (capitalization COUNTS)
botname="soulm4t3"

# change this to the name of your bot's userfile (capitalization COUNTS)
userfile="soulm4t3.user"

In case, anyone wondering why my botdir have additional /eggdrop after /eggdrop1.6.6, its because I am using a precompiled eggdrop.

Anyway, I tried manually running botchk by using ./botchk but still the error comes up.

However, when i go to the folder $botdir as stated above, and run ./eggdrop soulm4t3.conf, everything went well.

What could be the problem? Any insights/help/comments?
Locked