>0 */4 * * * your_command

The */4 must be linux.  This is not available on HP-UX 11.0.

Ron Thomas
Hypercom, Inc
[EMAIL PROTECTED]
"The problem with some people is that when they aren't drunk, they're sober."  
--William Butler
Yeats.


                                                                                       
                                                    
                      [EMAIL PROTECTED]                                                    
                                                    
                      Sent by:                 To:       [EMAIL PROTECTED]          
                                                    
                      [EMAIL PROTECTED]         cc:                                     
                                                    
                                               Subject:  Re: Unix - scheduling         
                                                    
                                                                                       
                                                    
                      07/02/02 04:28 AM                                                
                                                    
                      Please respond to                                                
                                                    
                      ORACLE-L                                                         
                                                    
                                                                                       
                                                    
                                                                                       
                                                    





> anyone who has a good example on how to write in the crontab if you want to schedule 
>a job to run
every four week.
> Is it possible to do that in unix cron job schedule.

Yes, it is very possible.

Run 'crontab -e' as apropeate user. Your $EDITOR will open.
Write as described in crontab(5) manual ('man 5 crontab'):

0 */4 * * * your_command

This will run your_command every four hours (first field which minutes,
second field in which hours)

You can also edit the /etc/crontab-file (if avaible on your system.) This
file has a different syntax (you specify the user who is going to run the
command too.)

--
/Nils H�glund, Naqua KB

E-mail:         [EMAIL PROTECTED]
Web:            http://www.naqua.se/
Home Phone:     +46 (0)18  30 09 19
Cellular Phone: +46 (0)709 91 97 65
Address:        Nya Vals�trav. 26 B
                SE-756 46
                Uppsala, Sweden
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: =?iso-8859-1?Q?Nils_H=F6glund?=
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Ron Thomas
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to