• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

crontab session

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
michael123199
Asked:
michael123199
  • 3
1 Solution
 
Kim RyanIT ConsultantCommented:
Have you checked that your script has execution permision, and will run without errors first?
0
 
ahoffmannCommented:
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
 
michael123199Author Commented:
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
 
ahoffmannCommented:
> .. 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
 
ahoffmannCommented:
what was wrong/incomplete with my suggestion
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now