This is more like it. I was puzzled by your response stating that it had worked. You are using csh. The redirection code brouw005 used would work in sh, ksh, or bash, but not csh. Writing scripts in csh is not wise. Since you're new to Unix, you should start with a better shell. For a list of reasons, see
Csh Programming Considered Harmful. One more reason: there are very few csh experts around to help you.
I think that:
) >& logfile
might work for you. But no money back guarantees. I switched to ksh as soon as I could and I don't remember csh very well.