Solved

crontab session

Posted on 2002-07-18
5
201 Views
Last Modified: 2008-03-17
I'm trying to set up a cronjob which executes every 5 minutes.

I can fill in some fields at my host 2mhost, these are:
minute hour day month and weekday.

I filled in 5 at minute and at the rest of the fields I filled in the * character.

Somehow that didn't do the job, anyone got an idea how to do it ?
0
Comment
Question by:michael123199
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 19

Expert Comment

by:Kim Ryan
ID: 7163993
Have you checked that your script has execution permision, and will run without errors first?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7164318
are you talking about cron, crontab, or about a special perl module?

For cron, crontab, you have to use:
    0,5,15,20,25,30,35,40,45,50,55 * * * *
some crons also allow
    */5 * * * *
0
 

Author Comment

by:michael123199
ID: 7168652
i'm talking about crontab. My host told me that I may run the script only once per hour. I need to run the script every 5 minutes though. Is there a code with which i can run my script 12 times per cron session ?
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 7168970
> .. run my script 12 times per cron session  ..
why would you do that?
See my examples, cron does it already for you, if configured properly
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7172733
what was wrong/incomplete with my suggestion
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
hard perl script 16 166
perl script to check whether folder contains any files 5 106
unable to remove invisible characters with perl 2 99
octal error in perl program 3 42
I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question