How to setup a crontab?

Hi, i tried to run a crontab on my eggdrop, i did &
followed the btochk script, but when the system reboot the pid file stay in the library and the bot doesn't come back.
Help me setup it, maybe i have errors maybe my botchk bad. Thanks.
dima_shermanAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
rjhawkinConnect With a Mentor Commented:
Try this,
Put a file in your home directory, for example 'cron-run'
edit cron-run with your favorite editor to contain the command that you want to run, exactly like you would type it on the command line. Just like a Shell Script:

#/bin/csh
/home/zer0c0ol/eggdrop1.1.5/botchk >/dev/null 2>&1


'chmod 700 cron-run'
make sure that '/home/zer0c0ol/eggdrop1.1.5/botchk' is 700 as well.
type 'crontab -e'

Into the temp file that opens, put your one line:


0,10,20,30,40,50 * * * * cron-run

Write the file and exit.

I believe cron assumes your home dir, but it been awhile sime I've set up any jobs.
Also depending on the version of *nix that the job will be running on you can replace 0,10,20,30,40,50   with  */10     meaning every 10th minute
See 'man 5 cron' for more information

0
 
ragnarCommented:
type crontab -l and it will list what cron jobs are in the memory.  this might help you debug the problem.  i'm assuming you did the standard command

% crontab cronfile

where cronfile is the name of your cron commands?  hope this helps point you in the right direction.
0
 
firefox032697Commented:
What is a bot / btochk?
What version of Unix?
Which library are you refering to is it the /proc (or equivalent) directory?

What process does the pid refer to? Is it a task called cron?

In short can you provide a little more detail?

Possibly the bot does not come back because the time that cron is told to schedule the task was either just before cron started or is well in to the future.

Typically cron is used to start background tasks at regular intervals (eg. Every Sunday night at 9PM). If you were wanting to start a job after a reboot, you might consider /etc/init.

Again, more details please?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
richrussellCommented:
Which version of UNIX?

Depending on version it can be as simple as adding script files to directories (cron_daily etc.).


0
 
dima_shermanAuthor Commented:
NO NO NO, i did $ crontab 0,10,20,30,40,50 * * * *   /home/zer0c0ol/eggdrop1.1.5/botchk >/dev/null 2>&1
-------
Like it says in readme & botchk.
The bot comes back only if the IRC || the pipe broken or something.
If the system reboots the pid.LameBot stays and the comp think the
bot is online (i think so...)
0
 
dima_shermanAuthor Commented:
p.s there is no matter what Unix Os or system i know that crontab appears there. . . i have 10 diffrent unix oses i ask globally. thnaks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.