egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[SOLVED] Crontabbing without autobotchk

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
vigilant
Halfop


Joined: 05 Jan 2006
Posts: 48

PostPosted: Sun Dec 09, 2007 1:13 am    Post subject: [SOLVED] Crontabbing without autobotchk Reply with quote

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 Cool
_________________
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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Dec 09, 2007 1:58 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Sun Dec 09, 2007 7:05 am    Post subject: Reply with quote

Code:
*/10 * * * * /home/mydir/mybotdir/botchk >/dev/null 2>&1
is simpliest imho Very Happy
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Dec 09, 2007 7:34 am    Post subject: Reply with quote

CrazyCat wrote:
Code:
*/10 * * * * /home/mydir/mybotdir/botchk >/dev/null 2>&1
is simpliest imho Very Happy

Whatever. Confused
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
vigilant
Halfop


Joined: 05 Jan 2006
Posts: 48

PostPosted: Sun Dec 09, 2007 12:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Dec 09, 2007 5:37 pm    Post subject: Reply with quote

Ok, this is easier considering we're not apparently going to read anything.
Code:
./autobotchk

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
vigilant
Halfop


Joined: 05 Jan 2006
Posts: 48

PostPosted: Sun Dec 09, 2007 6:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Dec 09, 2007 8:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
vigilant
Halfop


Joined: 05 Jan 2006
Posts: 48

PostPosted: Sun Dec 09, 2007 9:12 pm    Post subject: Reply with quote

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 Smile
_________________
Anser Quraishi
Website: http://www.anserq.com
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Dec 09, 2007 10:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
vigilant
Halfop


Joined: 05 Jan 2006
Posts: 48

PostPosted: Mon Dec 10, 2007 6:52 pm    Post subject: Reply with quote

Now i understand.
THanks a lot Alchera dude.. Laughing
_________________
Anser Quraishi
Website: http://www.anserq.com
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Dec 10, 2007 8:48 pm    Post subject: Reply with quote

Going to bed early helps with concentration btw. Wink
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber