Help with Cron
Results 1 to 3 of 3

Thread: Help with Cron

  1. #1
    Member
    Join Date
    Oct 2002
    Posts
    32

    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

  2. #2
    Member
    Join Date
    Dec 2001
    Posts
    87
    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.

  3. #3
    Member
    Join Date
    Oct 2002
    Posts
    32
    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
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides