[ acky.net logo ]

 .
Home > Tutorials > IRC ( Internet Relay Chat ) > How to setup Crontab for an Eggdrop Bot


PART 1: "botchk" setup
locate the botchk file in the bots main dir.
type -> pico botchk  
  You need to edit 4 things in the "botchk"

# change this to the directory you run your bot from:
botdir="/usr/home/user/botdir/"

# 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"

type -> ctrl+o Save the file
type -> ctrl+x exit pico
PART 2: Setting up the crontab file
type -> pico crones this will be your crontab file
type -> 0,10,20,30,40,50 * * * *  /home/user/botdir/botchk  >/dev/null 2>&1
- ^--(1) ^--(2) ^--(3) ^--(4)
- 1. time in (minutes) it will check to see if the bot is running
2. tells it to run every hour/day of month/month/year
3. full system path to the location of your botchk file
4. tells the system not to send you mail everytime crontab loads the bot or checks to see if the bot is running (this is a good idea because some sys admins might get upset with all of the emails)
type -> ctrl+o Save the file
type -> ctrl+x exit pico
type -> crontab crones This will load the file "crones" into your crontab. You can check your crontab by typing "crontab -l"
 


ShellSearch Admin of the Month Award

What is A.O.M.?
Who was Awarded?

Linux/UNIX Shell Search - Part of the Acky Network
  SEARCH FEATURES
..New Search
..Provider Login
..Add Provider
..Advertise
..Affiliate Program
..Add a Search
..Review Program
  COMMENTS & VOTES
..Account Login
..Register - Free
  IRC EXTRAS
..IRC Tutorials
..IRC Networks
..Downloads
  SHELL FORUMS
..General Discussion
..Shell Questions
..Shell News
..Eggdrop Help
..Shell Requests
..Design Copy Cats
..Linux/Unix Help
..Shell Admins
ADVERTISEMENTS

^ADVERTISEMENTS^

RANDOM POLL
Failed to execute script: Http Status Code = 404
 

 

Email This Page To A Friend

Last updated: Sunday, August 31, 2008 - 10:10 AM Eastern Daylight Time
Legal | Privacy Statement | Problems & Questions | Advertise | Link to us
© 1997-2008, All Rights Reserved.


Dedicated Server Provided by HighSpeedHosting