Unfortunately, both the ">" and ">>" is not work at this case to save the output result file.
The "program_used" is a binary file as well. Thus unable to edit its contents
My purpose just want to save the output result of "program_used" into another "new_output_file".
Thanks for any advice to archive my desired goal.
because ">" and ">>" will redirect the very same output which you get on your screen to the new_output_file.If after running the above program you are not getting any output on your screen then you can't redirect it to new_output_file.Then in that case you need to use different method.
Pl let us know...
Yaa Vgersh is right...
If you are unable to redirect the output with ">" or ">>" then I am a bit sure that the output you are getting is not the stdout.It should be stderror and you can trap it by using "2>" or "2>>" insted of ">" or ">>".