Directing program output to a file

When I do

time tar cvf /dev/st0 /mnt/junk >> /root/benchlog

, I want it to put the output of the time command into the benchlog file, but it put /mnt/junk. How do I get it to put the output of the tar command?

/bin/time tar cvf /dev/st0 /mnt/junk 2>> /root/benchlog

time may be a shell builtin so I give it the exact pathname. If you want to use a shell builtin (eg, you are using bash), do:

{ /bin/time tar cvf /dev/st0 /mnt/junk; } 2>> /root/benchlog

-mschwage