Changeset 5291


Ignore:
Timestamp:
10/17/09 12:03:48 (2 years ago)
Author:
KennethLavrsen
Message:

Item1302: Let us give people a little more docu for the most basic info for the crontab

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release01x00/MailerContrib/data/System/MailerContrib.txt

    r5288 r5291  
    120120| =-nochanges= | Only run the news mode. (only process subscriptions that include "!" or "?" following the topic) | 
    121121| <code><i>web1 web2 ... webN</i></code> | List of webs to process, separated by spaces or commas. The default is to process all webs. Wildcards (*) are supported. | 
     122 
     123Setting up cron can be done in many ways. Below is an ultrashort overview which may be sufficient. 
     124 
     125<blockquote> 
     126Crontab syntax is 5 numbers followed by the command 
     127 
     128=A B C D E   command to be executed= 
     129   * A is minutes (0-59) 
     130   * B is hour (0-23) 
     131   * C is day of month (1-31) 
     132   * D is month (1-12) 
     133   * E day of week (0-6) (Sunday=0) 
     134An asterix '*' means any value 
     135 
     136If you choose to setup the cron by editing the system wide /etc/crontab file the syntax is =A B C D E username command-to-be-executed= 
     137 
     138To learn more about cron and crontab Google for =crontab= for more information.  
     139</blockquote> 
     140 
    122141For example, assuming Foswiki was installed at =/usr/local/foswiki=, this cron entry: 
    123142<verbatim> 
    1241430 0 * * * cd /usr/local/foswiki && perl -I bin tools/mailnotify -q Public Private 
    125144</verbatim> 
    126 will generate change notifications for the =Public= and =Private= webs every night at midnight. (Google for =crontab= for more information on what all the =0 0 * * *= fields mean) 
     145will generate change notifications for the =Public= and =Private= webs every night at midnight. 
    127146<verbatim> 
    1281470 0 * * * cd /usr/local/foswiki && perl -I bin tools/mailnotify -q -Sandbox 
Note: See TracChangeset for help on using the changeset viewer.