linux - Redirecting standard error to file and leaving standard output to screen when launching makefile -
i aware redirecting standard error , output file have do:
make > & ! output.txt
note use !
overwrite file. how can redirect standard error file , leave standard output screen? or better having both error , output on file output on screen, can see how compiling progressing? tried:
make 2>! output.txt
but gives me error.
note >
enough overwrite file. can use tail -f
command see output on screen if redirected file:
$(make 1>output.txt 2>error.txt &) && tail -f output.txt error.txt
Comments
Post a Comment