LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2009, 03:07 PM   #1
nmukerje
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
Periodic Daemon


I am trying to have a daemon that will run periodically on my RHEL5 server (for example, once per hour). As far as shell scripting goes, I have found ample online resources and have written the script easily enough, and executing it isn't a problem. However, I do not know how to automatically execute the script periodically, and I have not yet found resources on the matter. Any guidance on this or pointers in the right direction would be greatly appreciated.
 
Old 07-22-2009, 03:36 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you're after cron surely..? Just put your script into /etc/cron.hourly and once an hour it'll run. Or use the full blown crontab configuration to customize it to your needs.
 
Old 07-22-2009, 06:59 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
As it sounds like you've never used cron before, here's a really good guide: http://www.adminschoice.com/docs/cro...Crontab%20file
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
periodic timer callbacks!!!! sandeepvignesh Linux - Newbie 19 06-27-2009 09:57 AM
periodic network down velumurugesan Linux - Networking 3 04-11-2008 02:28 AM
periodic freezes AhYup Slackware 1 02-13-2005 11:14 PM
periodic freezing piccardcapt Linux - General 3 06-16-2003 09:18 AM
Periodic stalls in X Tyco Slackware 3 06-07-2003 03:25 PM


All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration