I recently got my eggdrop bot running. After a certain amount of time on the channel, the bot exits out automatically. I was thinking that this is because I haven't installed crontab in. I looked at the crontab guides, several actually, and I don't seem to understand what to do. I was hoping that someone would post step-by-step instructions on how to get crontab running. I tried the search function and found nothing.
This will run the botchk script every 5 minutes, and redirect the junk that cron will otherwise mail to you, to /dev/null.
As per the manpage for Dillon cron:
The crontab format is roughly similar to that used by vixiecron, but without complex features. Individual fields may contain a time, a time range, a time range with a skip factor, a symbolic range for the day of week and month in year, and additional subranges delimited with commas. Blank lines in the crontab or lines that begin with a hash (#) are ignored. If you specify both a day in the month and a day of week, the result is effectively ORd... the crontab entry will be run on the specified day of week and on the specified day in the month.
# MIN HOUR DAY MONTH DAYOFWEEK COMMAND
# at 6:10 a.m. every day
10 6 * * * date
# every two hours at the top of the hour
0 */2 * * * date
# every two hours from 11p.m. to 7a.m., and at 8a.m.
0 23-7/2,8 * * * date
# at 11:00 a.m. on the 4th and on every mon, tue, wed
0 11 4 * mon-wed date
# 4:00 a.m. on january 1st
0 4 1 jan * date
# once an hour, all output appended to log file
0 4 1 jan * date >>/var/log/messages 2>&1
it's probably not working because the prior posts did not explain how to create the botchk file that they told you to crontab, small wonder it's not working
do the following to "botchk" file in the scripts directory:
For number 2, what parts would I edit? I see lines such as "/home/mydir/mybot" and "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
#"
DragnLord wrote:it's probably not working because the prior posts did not explain how to create the botchk file that they told you to crontab, small wonder it's not working
Came included with the eggdrop source archive.
cat /home/mybot/source/eggdrop1.6.18/README
$Id: README,v 1.44 2006-03-27 06:48:57 wcc Exp $
Readme
Last revised: June 5, 2002
Readme
Please at least SKIM this document before asking questions. In fact, READ IT if you've never successfully set up an Eggdrop bot before. PLEASE! READ IT!
Contents
<snip>
7. Setting up a crontab
7a. Setting up a crontab using autobotchk
<snip>