Please use
[code][/code] tags around your code and data, to preserve formatting and to improve readability.
Do NOT use "quote" tags, which don't preserve whitespace.
Code:
command >> textfile 2>&1
Redirections are evaluated left to right. This first redirects stdout to the text file, then it redirects stderr to the same place as stdout -- i.e. the text file.
Perhaps you can use this instead (assuming the error messages are being printed to stderr):
Code:
command >> textfile 2>/dev/null
Now stderr is simply disposed of, rather than redirected to the file.
Or this:
Code:
command 2>&1 >>textfile
Which should redirect the stderr output to the screen (the default target of &1), then redirect the stdout to the text file. The file then shouldn't get the error messages, but they'll be visible to you in the terminal.
Or just leave the stderr redirect off completely; since it defaults to the screen anyway.
http://wiki.bash-hackers.org/syntax/redirection