| View previous topic :: View next topic |
| Author |
Message |
vigilant Halfop
Joined: 05 Jan 2006 Posts: 48
|
Posted: Sun Dec 09, 2007 1:13 am Post subject: [SOLVED] Crontabbing without autobotchk |
|
|
How can i setup a crontab to check every 10 minutes without using autobotchk script hehe
I want to manually enter the botconfig or something
is that possible?
thanks  _________________ Anser Quraishi
Website: http://www.anserq.com
Last edited by vigilant on Mon Dec 10, 2007 6:52 pm; edited 2 times in total |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sun Dec 09, 2007 1:58 am Post subject: |
|
|
It's probably easier to use autobotchk to set up as it grabs details from your bot configuration file.
Anyway, copy botchk from ~./eggdrop1.6.18/scripts to your bots main directory (where its running from).
Use pico/vi to edit where indicated (case matters).
Once done start the crontab editor (crontab -e) and insert the following (replacing with appropriate pathlist).
| Code: | | 0,10,20,30,40,50 * * * * /home/mydir/mybotdir/botchk >/dev/null 2>&1 |
Save and exit.
Note that botchk should be executable. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sun Dec 09, 2007 7:34 am Post subject: |
|
|
| CrazyCat wrote: | | Code: | | */10 * * * * /home/mydir/mybotdir/botchk >/dev/null 2>&1 | is simpliest imho  |
Whatever.  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
vigilant Halfop
Joined: 05 Jan 2006 Posts: 48
|
Posted: Sun Dec 09, 2007 12:24 pm Post subject: |
|
|
SO like in the botchk file, do i enter the details? heh?
I have customized configs. What information needs to go in the botchk file? isit like,
./eggdrop fullpath config _________________ Anser Quraishi
Website: http://www.anserq.com |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sun Dec 09, 2007 5:37 pm Post subject: |
|
|
Ok, this is easier considering we're not apparently going to read anything.
_________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
vigilant Halfop
Joined: 05 Jan 2006 Posts: 48
|
Posted: Sun Dec 09, 2007 6:57 pm Post subject: |
|
|
When i run the autobotchk it doesnt work
I get $botnick2.botchk or something
And that file is empty? hehehe
and the crontab is also, /path/to/eggdrop/$botnick2.botchk
So i mean, I have editted the config you know, so it uses different variables.
I want to find a way to manually check for eggdrop running every 10 mins or so
I have tried to do this, but it doesn't work hehe
So anyone ever tried? That's my question if yes, then how to go abouts setting the crontab up.. thanks _________________ Anser Quraishi
Website: http://www.anserq.com |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Dec 09, 2007 8:20 pm Post subject: |
|
|
Uhm..considering that botchk is just a shell script, I see no reason you can't duplicate it, rename it, edit it, and do whatever else you want. As far as crontab, here's the manpage:
http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5
cron will run anything you want. Read about proper crontab syntax. |
|
| Back to top |
|
 |
vigilant Halfop
Joined: 05 Jan 2006 Posts: 48
|
Posted: Sun Dec 09, 2007 9:12 pm Post subject: |
|
|
Hello, thanks for your reply.
I did setup an executable file which crontab would check for every 10 minutes. and run it ofcourse
but it wasnt doing that... hehehe
I did specify the proper syntax read the manpage
the file that crontab was running, contained, /home/vigilant/eggdrop config
and i tried various other things, so here is what im asking, a simple way to run eggie, this way wasnt working any idea why?
thanks  _________________ Anser Quraishi
Website: http://www.anserq.com |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sun Dec 09, 2007 10:48 pm Post subject: |
|
|
Try re-reading my initial post?
From botchk:
| Quote: | # change this to the directory you run your bot from (capitalization COUNTS):
botdir="/home/mydir/mybot"
# change this to the name of your bot's config file (capitalization COUNTS):
botscript="mybot"
# change this to the botnet-nick of your bot (capitalization COUNTS):
botname="LamestBot"
# change this to the name of your bot's userfile (capitalization COUNTS):
userfile="LamestBot.user"
# change this to the name of your bot's pidfile (capitalization COUNTS):
pidfile="pid.LamestBot" |
What is there to not understand? _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
vigilant Halfop
Joined: 05 Jan 2006 Posts: 48
|
Posted: Mon Dec 10, 2007 6:52 pm Post subject: |
|
|
Now i understand.
THanks a lot Alchera dude..  _________________ Anser Quraishi
Website: http://www.anserq.com |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Dec 10, 2007 8:48 pm Post subject: |
|
|
Going to bed early helps with concentration btw.  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
|