$author = "Bernie Pannell" ;
>
> > root preexec = /bin/mount /bigdisk 2>&1 >> /tmp/bigdisk-mount.log
>
> I've usually put 2>&1 *after* the output file name, eg:
> command >> logfile 2>&1
>
> Is there some difference either way?
from man bash:
Note that the order of redirections is significant. For example, the
command
ls > dirlist 2>&1
directs both standard output and standard error to the file dirlist, while
the command
ls 2>&1 > dirlist
directs only the standard output to file dirlist, because the standard
error was duplicated as standard output before the standard output was
redirected to dirlist.
hth
marty
--
Close your brown eyes,
And lay down next to me.
Close your eyes, lay down.
'Cos there goes the fear,
Let it go.
"There Goes the Fear" - Doves
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug