Find the answer to your Linux question:
Results 1 to 4 of 4
Plz tell me if we schedule one cronjob then in how many files entry for this job will be added and plz give me the names of those files where ...
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    6

    Cron Job

    Plz tell me if we schedule one cronjob then in how many files entry for this job will be added and plz give me the names of those files where entry will be added.

  2. #2
    Just Joined!
    Join Date
    Dec 2010
    Location
    India
    Posts
    45
    crontab -e allows you to edit crontab file

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Quote Originally Posted by Piyu_86 View Post
    crontab -e allows you to edit crontab file
    crontab -e only edits the logged in users crontab.

    You need to decide who is going to run the event and if they have enough permission to handle the task at hand.

    If it is going to be a normal user then log in as said user and use crontab -e as stated above.

    If this is going to be a system event then have a look at /etc/crontab to see when the cron.hourly,daily,weekly,monthly are run and if the times are acceptable them place your script into one of those directories. If you want your script to run at a time other then those you can edit the crontab file itself and place your information there or login as root and use the above method to create the needed event.

    Please remember to use Full Paths to the file to avoid cron not being able to find the file.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  4. #4
    Just Joined!
    Join Date
    Dec 2010
    Location
    India
    Posts
    45
    I was not aware about this thanks Robert for sharing this information

Posting Permissions

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