Find the answer to your Linux question:
Results 1 to 7 of 7
Hi X-perts, I created a cron job using crontab -e. Then I input all the schedule and where the scripts can be found when the jobs start to kick in. ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    4

    cronjobs

    Hi X-perts,

    I created a cron job using crontab -e. Then I input all the schedule and where the scripts can be found when the jobs start to kick in. I tested manually each and every script. It works just fine when i execute it manually. However, when it inside the cron jobs. It just won't run. Can someone tell me what is going on with my cron jobs?

    Thanks for your help in advance,
    asianadmin

  2. #2
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,392
    It's likely to be a permissions issue. Make sure your cron scripts are owned and executable by the person whom the cron job is running as.
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Posts
    4
    those scripts files owned by oracle which is the same owner of the cron job. Becuase i log in as oracle and execute this command: crontab -e

  4. #4
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Australia (Down Under)
    Posts
    141
    I had an issue similar to this, i had my script.sh file and to run it manually I would
    Code:
    ./script.sh
    to run it in a cron i had to remove the . so my crontab looked like this
    Code:
    * * * * * /scripts/script.sh
    (note that there is no .)


    hope this helps.

  5. #5
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,939
    I would suggest you post your entry from the crontab file so it can be viewed. Someone might see an obvious problem.

  6. #6
    Just Joined!
    Join Date
    Mar 2009
    Posts
    2
    have you checked out the cron logs in /var/log/cron it should give you an error message

  7. #7
    Just Joined!
    Join Date
    Feb 2009
    Posts
    25
    start from basics -- check if the cron service is running!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...