How to redirect the output of a cvs command to a file as well as the console.

Hi

can anyone tell me how to redirect the ouput of a cvs command to a file as well as the console?

i tried using
cvs add <filename> | tee logFile
cvs add <filename> 2>logFile 2>&1

All i could get is only on console or on file.

Please help

Thanks

try tee with -a option

cvs your_command file_list | tee -a log_file

Thanks

got the solution

cvs add <file_name> 2>&1 | tee <log_file>