[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: software raid



High, high ...
* Frank Schmitz <spam@schradt.no-ip.org> schrieb am [06.05.03 10:13]:
> Am 06.05.2003 um 09:01:20 CEST, schrieb Kai Wilke:
> > > > Als cron Eintrag nehme ich
> > > > einmal in der Stunde.
> > > > * 0-23/1 * * * root test -x /usr/sbin/raidmonitor &&
> > > 
> > > Das wird aber jede Minute angeworfen, oder?
> > m h dom mon dow user command
> > 0-59/1 * * * * das wäre jede Minute, man 5 crontab;-)
> 
> Guck da selber mal rein!
> 
> Zitat:
>  ________________________________________________________________________
> /
> |field          allowed values
> |-----          --------------
> |minute         0-59
> |
> |A field may be an asterisk (*), which always stands for ``first-last''.
> \________________________________________________________________________
> 
> Also gibst du eine Spanne von 0 *bis* 59 Minuten an und das trifft
> *jede* Minute zu.
> 
> Falls du das immer noch nicht glaubst:
> crontab -e
> * 0-23/1 * * *       echo `date`>> $HOME/tmp/out 2>&1
> 
Ich habe da reingeschaut und dort steht auch:
For example, `0-23/2' can be  used in  the  hours  field to specify 
command execution every other hour (the alternative in the V7
standard is `0,2,4,6,8,10,12,14,16,18,20,22').  Steps are also 
permitted after an  asterisk, so if you want to say `every two hours',
just use `*/2'.

Ah, der Fehler liegt am 1. *, da mus ne Zahl rein

mfg Kiste
-- 
#######################################################################
Netzworkk
Kai Wilke
kiste@netzworkk.de
http://www.netzworkk.de
http://netzworkk.berlios.de



Reply to: