cron.exe -reload |
time_in_cron_format command |
15 12 * * 1-5 d:\tools\chime.exe |
0 12,17 * * * e:\my documents\perl\re\re.pdf |
*/5 * * * * d:\fido\bat\blstbbs.cmd |
0 12 * * * "e:\my documents\forth\index.html" |
0 8-18 * * 1-5 cmd /c d:\tools\cleanup.bat |
30 9 * * * %COMSPEC% /c d:\tools\my_bat.bat |
0 12 * * 1-5 d:\tools\maintain.bat %DD%-%MMM%-%YYYY%.log |
Minute , Hour , Day_of_the_Month , Month_of_the_Year , Day_of_the_Week |
Minute , Hour , Day_of_the_Month , Month_of_the_Year , Day_of_the_Week , Year |
* * * * * | | | | | | | | | +----- Day of the Week (range: 1-7, where 1 is Monday) | | | +------- Month of the Year (range: 1-12) | | +--------- Day of the Month (range: 1-31) | +----------- Hour (range: 0-23) +------------- Minute (range: 0-59) |
* * * * * Each minute 59 23 31 12 5 One minute before the end of year if the last day of the year is Friday 59 23 31 Dec Fri Same as above (different notation) 45 17 7 6 * Every year, on June 7th at 17:45 0,15,30,45 0,6,12,18 1,15,31 * * At 00:00, 00:15, 00:30, 00:45, 06:00, 06:15, 06:30, 06:45, 12:00, 12:15, 12:30, 12:45, 18:00, 18:15, 18:30, 18:45, on 1st, 15th or 31st of each month, but not on weekends */15 */6 1,15,31 * * Same as above (different notation) 0 12 * * 1-5 (0 12 * * Mon-Fri) At midday on weekdays * * * 1,3,5,7,9,11 * Each minute in January, March, May, July, September, and November 1,2,3,5,20-25,30-35,59 23 31 12 * On the last day of year, at 23:01, 23:02, 23:03, 23:05, 23:20, 23:21, 23:22, 23:23, 23:24, 23:25, 23:30, 23:31, 23:32, 23:33, 23:34, 23:35, 23:59 0 9 1-7 * 1 First Monday of each month, at 9 a.m. 0 0 1 * * At midnight, on the first day of each month * 0-11 * * Each minute before midday * * * 1,2,3 * Each minute in January, February or March * * * Jan,Feb,Mar * Same as above (different notation) 0 0 * * * Daily at midnight 0 0 * * 3 Each Wednesday at midnight |
? ? * * * |
25 8 * * * |
# application will be startedonly on nnCron LITE startup ? ? ? ? * # application will be started on nnCron LITE startup (e.g. at 10:15) # and then will be executed again each hour: # at 11:15, 12:15, 13:15 etc. ? * * * * # will be executed each minute after nnCron LITE startup until the next hour starts. # The next day, if nnCron LITE has not been restarted in the meanwhile, # it will be executed again each minute during the same hour. * ? * * * # will be executed daily, every five minutes, # during the hour when nnCron LITE was started */5 ? * * *
|
cron.exe -ns |
<time_in_cron_format> <command> |
! any Forth words until the end of line |
each Friday at 12:00 write to file 'cron.out' a list # of Forth words from nnCron LITE dictionary 0 12 * * 5 !WORDS |
# daily (Monday to Friday) # close nnCron LITE at 16:45 45 16 * * 1-5 !BYE |
# setting c:\dir as a working directory for xxx.exe 0 * * * * !S" c:\dir" DROP APP-Dir ! START-APP: c:\dir\xxx.exe |
\ --- start of test.spf --- WINAPI: FindWindowA USER32.DLL : CALC-STARTED? ( -- ? ) Z" Calculator" 0 FindWindowA 0<> ; : RUN-CALC CALC-STARTED? 0= IF ShowNormal START-APP: calc.exe THEN ; \ --- end of test.spf --- |
INCLUDE test.spf |
# each minute check of a Calculator is present # on the screen, and if no instance of a Calculator # is found, start a new one * * * * * !RUN-CALC |
cron.exe S" test message" MsgBox BYE |
cron.exe S" oneliner.txt" FCREATE S" test string" S" oneliner.txt" FAPPEND S" oneliner.txt" FILE MsgBox BYE |
%hh% | - current hour (00-23) |
%mm% | - current minute (00-59) |
%ss% | - current second (00-59) |
%MM% | - month (01-12) |
%MMM% | - month (Jan-Dec) |
%DD% | - day of a month (01-31) |
%WW% | - day of a week (Mo-Su) |
%WD% | - day of a week (1-7, where 1 is Monday, and 7 is Sunday) |
%YYYY% | - year (4 digit) |
%YY% | - year (last 2 digit) |
%QUOTE% | - quotation mark (") |
%PERCENT% | - percent sign (%) |
# calling command interpreter to execute 'del' command 0 * * * * %COMSPEC% /c del /S /Q c:\temp\* |
# local environment variableSET varname=string value until the end of line # or SET varname="string value" |
SET CURTIME=%hh%:%mm% SET CURDATE=%DD%.%MM%.%YY% SET WEEKDAY=%WD% |
SET PATH="%PATH%;c:\xxx" |
I | Attachment | History | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|---|
exe | nncronLite.exe | r1 | manage | 254.6 K | 2003-08-01 - 13:56 | UnknownUser | nncron_Lite.exe software download |