Advertisement

07.31.2008 at 06:44PM PDT, ID: 23613013
[x]
Attachment Details

How do I setup cron to execute a task every 10 minutes? I cant get it to work.

Asked by richardsimnett in Linux, Linux Administration

Hello,
I am trying to setup a task to run every 10 minutes in cron. Unfortunately, the release of linux the server is running seems to be using a weird cron daemon. Which doesnt seem to have a traditional crontab, instead it uses run-parts to execute directorioes of scripts. I am trying to work around this here is what I have (the last line is what I added - iit doesnt work):

:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
*/10 * * * root /usr/sbin/java -jar /opt/rm/rm.jar


The correct fix is worth 500 points.

Thanks,
RickStart Free Trial
[+][-]07.31.2008 at 07:22PM PDT, ID: 22135111

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.31.2008 at 07:23PM PDT, ID: 22135115

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux, Linux Administration
Sign Up Now!
Solution Provided By: Alundrez
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628