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

Re: [cobalt-users] Cron Question ??



> Date: Wed, 23 Jan 2002 17:17:54 +0100
> From: Ramon LOPEZ <r.lopez@xxxxxxxxxxxxxxxxxxx>

> Sorry but i don't know were this redirect must be inserted.
> My Crontab look like :

Yes, by default cron will mail the output.

> 03,18,33,48 * * * * root run-parts /etc/cron.quarter-hourly (here ??)

Yes, where you put "here".

> 0,15,30,45 * * * * root /usr/local/sbin/swatch >>/var/cobalt/adm.log 2>&1

This line is similar.  ">>" means to append the output to
/var/cobalt/adm.log, and "2>&1" means to redirect errors to the
same.

I prefer to explicitly redirect both stderr and stdout, but using
the & convention is shorter and more commonly found.

That should do the trick.


HTH,
Eddy

---------------------------------------------------------------------------
Brotsman & Dreger, Inc. - EverQuick Internet Division
Phone: +1 (316) 794-8922 Wichita/(Inter)national
Phone: +1 (785) 865-5885 Lawrence
---------------------------------------------------------------------------

Date: Mon, 21 May 2001 11:23:58 +0000 (GMT)
From: A Trap <blacklist@xxxxxxxxx>
To: blacklist@xxxxxxxxx
Subject: Please ignore this portion of my mail signature.

These last few lines are a trap for address-harvesting spambots.  Do NOT
send mail to <blacklist@xxxxxxxxx>, or you are likely to be blocked.