Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Location
    Chennai
    Posts
    53

    Unanswered: to run a processes automatically

    how to run a processes automatically at a sheduled time in unix

  2. #2
    Join Date
    Jan 2004
    Location
    Bordeaux, France
    Posts
    320
    You can use crontab :

    Code:
    crontab -e
    Add a line for each schedule :
    Each crontab file entry contains six fields separated by
    spaces or tabs in the following form:

    minute hour day_of_month month weekday command

    These fields accept the following values:

    minute 0 through 59

    hour 0 through 23

    day_of_month 1 through 31

    month 1 through 12

    weekday 0 through 6 for Sunday through Saturday

    command a shell command

    For example, if you want to schedule the execution of the script /usr/sbin/skulkey evry day at 3am and the execution of the script /user/root/backup every sunday and wednesday at 01am :

    0 3 * * * /usr/sbin/skulker >/dev/null 2>&1
    * * * * 0,3 /user/root/backup


    For more information : man crontab
    Jean-Pierre.

Posting Permissions

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