Find the answer to your Linux question:
Results 1 to 2 of 2
Hello all, Could anyone tell me how is configured a script in this directory to run every 5 minutes? THanks in advance...
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    6

    cron.d configuration

    Hello all,

    Could anyone tell me how is configured a script in this directory to run every 5 minutes?

    THanks in advance

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Depending on what you're trying to do exactly, it may be a better approach to just add this to the crontab of the user you want the job to run as.

    See
    Code:
    man 1 crontab
    for how to edit a user's crontab, and
    Code:
    man 5 crontab
    to see how to create your cronjob correctly.

    Example:
    Code:
    [hector@troy ~]$ crontab -l
    5 4 * * * /usr/home/hector/.cronjobs/nightly-backup
    This runs my nightly-backup script at 4:05 a.m. every day.

Posting Permissions

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