[mythtv-users] queston to the wilsonet.com fc2 crontab

Seth Remington sremington at saberlogic.com
Tue Nov 9 19:57:14 UTC 2004


On Tue, 2004-11-09 at 14:41, anders smith wrote:
> I'm looking at my crontab entry trying to figure out what the
> different element do... especially the '2>&1' that comes in the end.
> I'm sorry if it's a silly n00b question but I'm having some problems
> with mythfilldatabase not running right (multible threads and
> balloning memory use) and would like to understand all the parts to
> correctly fix it
> 
> thanks
> anders
> 
> for reference here is the wilsonet.com crontab:
> ### Run mythfilldatabase every night at some random time after 2:30am
> 30 2 * * * sleep $(expr $RANDOM \% 14400) && mythfilldatabase >
> /var/log/mythtv/mythfilldatabase.log 2>&1

That weird syntax redirects both standard out and standard error to the
mythfilldatabase.log file. Without it you would miss anything sent to
stderr.

-Seth

-- 
Seth Remington
SaberLogic, LLC
661-B Weber Drive
Wadsworth, Ohio 44281
Phone: (330)335-6442
Fax: (330)336-8559



More information about the mythtv-users mailing list