-
November 14th, 2002, 10:37 AM
#1
Member
Help with Cron
I am using redhat 8 and having a bit of trouble with setting up cron jobs.
I would like a program to run every hour so I added a file to /etc/cron.hourly >> Inside the file i put
#!/bin/sh
/path/to/file [ this is what it had for my log rotater and that seems to run properly ]
Well an hour has gone by and it has not run. I have checked google but all I could find was about crontabs and I am using the cron.hourly so that doesnt help. Anyways if anyone knows what I am doing wrong can you stear me in the right direction please
-
November 14th, 2002, 10:50 AM
#2
Member
You dont normally edit cron configuration files directly. You would use crontab -e to change your own personal cron file. Yours probably didnt work because you havent restarted cron. Try service cron restart.
-
November 14th, 2002, 11:08 AM
#3
Member
I thought you didnt have to restart cron for new entries. I read that it checks everytime it wakes up. Anyways I tried crontab -e from a shell and it said it made a temp file but I wasnt sure if I was supposed to type out in the shell or the temp file. And if from shell I didnt know how to save.
Anyways I restarted and should find out in a few min if it works
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|