Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Cron job - help request, Can I run a cron job every 65 minutes?
davidwhthomas
post Apr 24 2006, 01:05 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 24-April 06
Member No.: 6,291



I know, it sounds easy.

I've read the manual.

But yet, I can't figure out how to run a cron job every 65 minutes.

I can run a job every hour, on the hour.

I can run a job 5 past every hour (60 minutes since the last run)

BUT, is it possible to run a cron job every 65 minutes?

i.e 1:05 - run, 2:10 - run, 3:15 - run, 4:20 - run

It seems that cron is based on dates and times only in that you can only run a job at a certain time or a certain time interval within one hour.

If this seems easy to you, please help.

Your advice will assist around 6000 English teachers in Japan!

thanks,

David Thomas.

//first post
Go to the top of the page
 
+Quote Post
michaelk
post Apr 24 2006, 08:37 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,797
Joined: 23-January 03
Member No.: 360



You can run cron in intervals like every 5 minutes but AFAIK minutes are just 0-59. You can create a script that starts with a cron job that has contains a loop with the sleep command for waiting the 65 minutes.
Go to the top of the page
 
+Quote Post
DS2K3
post Apr 24 2006, 10:06 AM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



or, create a script that is set to run once, and then reschedules itself

Possibly best to do the rescheduling first, so that it will still run again even if it crashes mid-way through

D


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post
docmur
post Apr 24 2006, 10:24 AM
Post #4


I Eat C Code for Breakfast
****

Group: Members
Posts: 276
Joined: 9-November 04
From: Canada Ontario
Member No.: 4,136



Ya just make a bash shell


--------------------
Gentoo ROCKS!!!!! Go and emerge the world
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2017 - 02:00 PM