Solved

crontab session

Posted on 2002-07-18
5
181 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now