[HPADM] Re: scheduling cron - on 7th of every month

From: HP ADMIN (hpadminster_at_gmail.com)
Date: 05/06/05

  • Next message: Nuno Fontainhas Dias: "[HPADM] Re: scheduling cron - on 7th of every month"
    Date: Fri, 6 May 2005 18:36:54 +0530
    To: Balaji Nathan <balajinathan2003@yahoo.com>
    
    

    Dear balaji,

    Work accordingly with the examples shown below.

    -================================================
    Crontab file
    ___________
    syntax :-
    A crontab file has five fields for specifying day , date and time
    followed by the command to be run at that interval.

    * * * * * command to be executed
    - - - - -
    | | | | |
    | | | | +----- day of week (1 - 7) (monday = 1)
    | | | +------- month (1 - 12)
    | | +--------- day of month (1 - 31)
    | +----------- hour (0 - 23)
    +------------- min (0 - 59)
      

    * Indicates all possible values as in braces for that column.
      

    Example
    _______

    A line in crontab file like below removes the tmp files from
    /home/someuser/tmp each day at 6:30 PM.

    30 18 * * * rm /home/someuser/tmp/*

    Changing the parameter values as below will cause this command to run
    at different time schedule below :

    30 0 1 1,6,12 * -- 00:30 Hrs on 1st of Jan, June & Dec.
                
    0 20 * 10 1-5 --8.00 PM every weekday (Mon-Fri) only in Oct.
                
    0 0 1,10,15 * * -- midnight on 1st ,10th & 15th of month
                
    5,10 0 10 * 1 -- At 12.05,12.10 every Monday & on 10th of every month
                
    Regds
    B.Ganesh
    ==========================================================================

    On 5/4/05, Balaji Nathan <balajinathan2003@yahoo.com> wrote:
    > Hi admins,
    > Please help me on scheduling a job ON 7TH OF EVERY MONTH.
    > This is what I have come-up with. Please correct me, if I am wrong.
    >
    > Schedule: 7th of every month, at 8pm - script test.sh
    >
    > 00 20 7 * * /usr/local/bin/test.sh
    >
    > Thanks in advance.
    > Balaji.
    >
    > ________________________________
    > Do you Yahoo!?
    > Yahoo! Small Business - Try our new resources site!
    >
    >

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Nuno Fontainhas Dias: "[HPADM] Re: scheduling cron - on 7th of every month"

    Relevant Pages