[ LUGOS ] Remote command in crontab

Metod Kozelj metod.kozelj na rzs-hm.si
Pet Jan 19 07:53:32 CET 2001


Howdy!

On Fri, 19 Jan 2001, Saso wrote:

> #minute hour    mday    month   wday    command
> #Delavnik1:
> 
> 10,20,30,40,50 6,7,8,9,10,11,12,13,14,15,16,17 * * 1,2,3,4,5 /bin/whatever

Oziroma krajse:

*/10 6-17 * * 1-5 /bin/whatever

Pa se za ponoci in cez vikend:

0 0-5,18-23 * * 1-5 /bin/whatever
0 * * * 0,6 /bin/whatever

>   crontab Entry Format

[ snip ]

>         day of the week (0-6 with 0=Sunday).

V mojem pise:
day of week    0-7 (0 or 7 is Sun, or use names)

V mojem primeru je lahko zadnji cron entry tudi takle:

0 * * * 6-7 /bin/whatever

Peace!
  Mkx

---- perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'





Dodatne informacije o seznamu Starilist