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

From: Nuno Fontainhas Dias (fdias@runbox.com)
Date: Fri May 06 2005 - 09:25:22 EDT


Dear all,
I believe that you have a small mistake in the weekday field...

check in your operating system by running "man crontab" .

If you are running HP UX or solaris, or linux... it should be like these

           minute The minute of the hour, 0-59
           hour The hour of the day, 0-23
           monthday The day of the month, 1-31
           month The month of the year, 1-12

>>>>>> weekday The day of the week, 0-6, 0=Sunday <<<<<<<<<<<

The other entries are correct.

Regarding to your example, Balaji,
> > Schedule: 7th of every month, at 8pm - script test.sh
> > 00 20 7 * * /usr/local/bin/test.sh

It is correctly set to run on the sevent day of every month

Regards
Nuno Fontainhas Dias

> 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)
>
>

--
             ---> 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)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:47 EDT