Reputation: 980
I am working with a command line package and to get its the output in a file I use:
my_command > outfile
but it also produces some information on the screen while running and writing the output in the outfile and I want the get the screen output in a second outfile. In the useful thread in here , there is no suggested way to separate these two outputs. Is there actually a way to separate these two outputs and write them in different files?
Upvotes: 0
Views: 514
Reputation: 39434
Sounds like the additional output comes from stderr
, which you can capture with 2>
:
mycommand > outfile 2> stderr
Upvotes: 2