Re: crontab
[Bernd _berbacher] said:
> what do i have to write into /etc/crontab that cron will cp a
> file every 5 mins??
>
> i have
>
> 5 * * * * root cp ...
>
> but this copies just every hour.
crontab entries define patterns that the time has to match for it to execute,
not intervals. So you need to use
0,5,10,15,20,25,30,35,40,45,50,55 * * * * root cp ...
--
Geek Code 3.1: GCS d- s+: a- C++ UL++$ P+>+++ L++>++++ E- W--(++) N+ o+ !K
w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI++++ D G e* h+ r++ y+
Reply to:
- References:
- crontab
- From: Bernd Überbacher <bernd@mynet.at>