I run a a program in command line (unix/linux). But I need to get the results into a file. So i used.
program_name >> result.txt
But it didn't give anything to the file. Then I tried.
program_name 2>> result.txt
Then I got a portion of the results which was part of the STD:ERR
.
But still some data shows on the console window. Is there any possibility to get that data to the file?
update: I also tried
program_name >> result.txt 2&>1
I get all data except two lines. Why I'm missing that?