Results 1 to 2 of 2

Thread: Cron Job

  1. #1
    Join Date
    Jul 2005
    Posts
    1

    Cron Job

    Hello to alll
    i m new to this site......................
    i have problem in cron job
    anyone can help me
    i want cron job for every 1 min.
    waiting 4 reply
    bye

  2. #2
    Join Date
    Mar 2004
    Location
    China
    Posts
    3,315
    minute hour dom month dow user cmd

    minute - This controls what minute of the hour the command will run on,
    and is between '0' and '59'
    hour - This controls what hour the command will run on, and is specified in
    the 24 hour clock, values must be between 0 and 23 (0 is midnight)
    dom - This is the Day of Month, that you want the command run on, e.g. to
    run a command on the 19th of each month, the dom would be 19.
    month - This is the month a specified command will run on, it may be specified
    numerically (0-12), or as the name of the month (e.g. May)
    dow - This is the Day of Week that you want a command to be run on, it can
    also be numeric (0-7) or as the name of the day (e.g. sun).
    user - This is the user who runs the command.
    cmd - This is the command that you want run. This field may contain
    multiple words or spaces.

    e.g.

    01 * * * * root echo "This command is run at one min past every hour"
    17 8 * * * root echo "This command is run daily at 8:17 am"
    17 20 * * * root echo "This command is run daily at 8:17 pm"
    00 4 * * 0 root echo "This command is run at 4 am every Sunday"
    * 4 * * Sun root echo "So is this"
    42 4 1 * * root echo "This command is run 4:42 am every 1st of the month"
    01 * 19 07 * root echo "This command is run hourly on the 19th of July"
    * * * * * root echo "This runs every minute"

    N.B. Running a corn job too often may cause very high server loads. This may cause your host to boot you out. Do you really need to run every minute? Think about it. There may be more resourse sensible methods to achive the same effect.

Similar Threads

  1. Job and Recruiting System
    By tawia in forum General Questions
    Replies: 0
    Last Post: 02 Oct 2005, 12:15 AM

Posting Permissions

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