LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-23-2007, 11:41 PM   #1
sleepykit
Member
 
Registered: Sep 2005
Distribution: Mandriva 2007 & Ubuntu Fesity Fawn
Posts: 67

Rep: Reputation: 15
Scheduling


How do I schedule a single command (./dynip.sh) to be run hourly on Mandriva 2007 official? Help please.
 
Old 02-24-2007, 12:38 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
have a look at man crontab
 
Old 02-24-2007, 12:46 AM   #3
wildar
Member
 
Registered: Jan 2007
Distribution: Mandriva 2008, Mandrake 2005, Ubuntu 8.04.1
Posts: 239

Rep: Reputation: 30
You'll want to learn how to modify /etc/crontab. In addition to the ever so popular 'man crontab', here are some links as reference:
http://en.wikipedia.org/wiki/Cron
http://www.linux-tutorial.info/modul...rial&pageid=78
http://www.deluxnetwork.com/linux/guides/crons.php

Hope this helps.
 
Old 02-24-2007, 03:51 AM   #4
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
In Mandriva (and possibly other distributions), you can put a copy of the script in /etc/cron.hourly. In a terminal window (as root):

Code:
cp ./dynip.sh /etc/cron.hourly
 
Old 02-24-2007, 09:01 PM   #5
sleepykit
Member
 
Registered: Sep 2005
Distribution: Mandriva 2007 & Ubuntu Fesity Fawn
Posts: 67

Original Poster
Rep: Reputation: 15
Thank you very much for the help. Attempting to edit crontab (via crontab -e) didn't go so well, but apparently adding a script to the cron.hourly does work. It seems to run on the hour exactly (like *:01). =)
 
  


Reply

Tags
schedule



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
Scheduling Software Hal Linux - Software 5 12-13-2005 03:54 AM
Scheduling shutdowns avenolpey Debian 1 06-01-2005 10:05 PM
Scheduling problems? mst700 Linux - Newbie 3 07-23-2004 09:23 PM
Linux Scheduling Kumar Programming 3 06-14-2004 04:24 AM
scheduling again nautilus_1987 Linux - Software 2 07-04-2003 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:23 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
Open Source Consulting | Domain Registration