Defindit Docs and Howto Home

This page last modified: Jun 02 2005
title:bash sh shell io file descriptor redirection (applies to cron too)

send stdio and stderr both to the file.out

command > file file_descriptor_reassign

ls -l > file.out 2>&1 

Use this in cron jobs to prevent output from upsetting cron and 
making it email you.

See man bash. Order of the redirect and the file descriptor
assignment is important.