You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Reinhard Poetz <re...@apache.org> on 2006/11/01 02:33:09 UTC

Re: [zone] help with crontab

Bertrand Delacretaz wrote:
> On 10/31/06, Reinhard Poetz <re...@apache.org> wrote:
> 
>> ...I entered
>>
>> 0 1,5,9,13,17,21 * * * /home/maven/continuum-project-builder/run.sh >
>> /home/maven/cron.log
> 
> Isn't that missing a field? You should have 5 values or stars, with
> hours in second position:
> 
> * 0 1,5,9,13,17,21 * * *
> 
> And this should work as well:
> 
> * */4 * * *
> 
> You might also want to add 2>&1 at the end of your command, so that
> standard error also goes to your log file, otherwise it would be sent
> by mail to the user, if there's anything written to it.

I've applied your suggestions, thanks!

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------



	
		
___________________________________________________________ 
Der fr�he Vogel f�ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de