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
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!