This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Crontab and eggdrop

Old posts that have not been replied to for several years.
Locked
B
BassTeQ

Post by BassTeQ »

Ive setup the script called botchk in my crontab.
Although if the script find sthe bot is dead, and tries to restart it it says
bot.conf - Permission denied.
What permissions should I have sent on this conf file so the cron daemon can start it?

Thanks.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The config file needs to be set
chmod u+x <filename>
B
BassTeQ

Post by BassTeQ »

Thanks for the quick reply!
m
masskilla
Op
Posts: 172
Joined: Wed Oct 03, 2001 8:00 pm
Location: Croatia

Post by masskilla »

Hi BassTeQ

If that doesn't help, add './eggdrop' to where it asks you for your config file (without the ' of course).
Somehow for me chmoding never worked..
MaSsKilla

#eggdrop
Undernet
t
tajson

Post by tajson »

On 2002-01-03 21:39, BassTeQ wrote:
Ive setup the script called botchk in my crontab.
Although if the script find sthe bot is dead, and tries to restart it it says
bot.conf - Permission denied.
What permissions should I have sent on this conf file so the cron daemon can start it?

Thanks.
I will also answer... :)
chmod as ppslim said, check that the first line points to your eggdrop executable

Code: Select all

#!/path/to/your/eggdrop
I also added this right below that line:

Code: Select all

set path "/home/tajson/eggdrop"
Now I replace all paths with "$path/the/path", for example:

set mod-path "modules/"
to
set mod-path "$path/modules/"

Now I can start my eggdrop wherever in my filesystem I stand by pointing to my configuration file, for example if I'm in my public_html dir "../../eggdrop/Lina^17.conf"

I want a $path solution to be standard in eggdrop configuration files.

g
gpdza

Post by gpdza »

Why not just use the autobotchk script?

From your egg dir:

cp scripts/autobotchk .
chmod u+x autobotchk
./autobotchk configfilename -noemail -5
B
BassTeQ

Post by BassTeQ »

Thanks for the help guys!
All working now!
Cheers
Locked