LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Scheduling (https://www.linuxquestions.org/questions/mandriva-30/scheduling-531895/)

sleepykit 02-23-2007 11:41 PM

Scheduling
 
How do I schedule a single command (./dynip.sh) to be run hourly on Mandriva 2007 official? Help please.

billymayday 02-24-2007 12:38 AM

have a look at man crontab

wildar 02-24-2007 12:46 AM

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.

ernie 02-24-2007 03:51 AM

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

sleepykit 02-24-2007 09:01 PM

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). =)


All times are GMT -5. The time now is 11:30 PM.