Solved

crontab session

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
binary to char / hexadecimal 5 104
Perl strange behaviour 5 69
remove duplicates from the csv file 13 102
Parse csv file and generate graphs in HTML in bash 8 157
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…
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
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…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

910 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

23 Experts available now in Live!

Get 1:1 Help Now