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.
/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..