awk output redirection to file

I have a system stat command running which generates data after 5 sec or so. I pass this data to awk and do some calculation to present the data differently. Once done now I want to pass this data to file as and when generated but doesn't work..unless the first command completes successfully.

nicstat-1.22/nicstat.Ubuntu7.i386 -i eth4 5 | awk '{print $1 " " ($3+$4)/1024" MBps"}'

This prints something like this:

Time 0 MBps
17:02:41 0.00254883 MBps
17:02:46 0.00296875 MBps

I want this to be directed to file say /tmp/foo but then I do :

nicstat-1.22/nicstat.Ubuntu7.i386 -i eth4 5 | awk '{print $1 " " ($3+$4)/1024" MBps"}' > /tmp/foo

It never gets added to foo file.
Thanks for your attention and help.

Try this:

nicstat-1.22/nicstat.Ubuntu7.i386 -i eth4 5 | awk '{print $1 " " ($3+$4)/1024" MBps" > /tmp/foo}' 

Thanks for attention . Doesn't work the file even doesn't get created..

Hi.

Can you explain what your /tmp/foo file does look like after running your command?

Is it possible that what you are running is going to standard error, and not standard output.

I.e., would this work:

nicstat-1.22/nicstat.Ubuntu7.i386 -i eth4 5 2>&1 | awk '{print $1 " " ($3+$4)/1024" MBps"}' > /tmp/foo

/tmp/foo is empty file after running the command. The output does goes to stdout not the error but just to make sure I tried your suggestion couldn't get to work.
Thanks..

After the re-direction does the output still appear on the screen?

It might be using an alternate file descriptor.

is nicstat.Ubuntu7.i386 the (archaically named) program? Is there a man page for it?

It can be found here:
Nicstat - Siwiki