|
|
Nicolas: hope you're reading this.
>>Hi,
>>
>>assuming you want to read the messages after running make, you can use
>>"make 1>&messages.txt 2>&1".
>>
>>hope that helps.
>The number before the redirection represents the stream to be redirected,
>where 1 = stdout and and 2 = stderr. The &1 represents the previously-
>mentioned messages.txt, so the command means redirect messages
>written to stdout and stderr to messages.txt. The 1> is not necessary,
>since by default '>' redirects stdout.
>Since gcc writes its warnings and error messages to stderr, your text files
>contain neither. You will see only the commands that make executed.
A++ for effort. Thank you. But no working example has been achieved.
tried every combination of 1>&messages.txt 2>&1
Ampersands always become part of the filename.
adding a 1 or a 2 is never accepted - "no rule to make target '2' Stop."
>>mess.txt = stdout
>mess.txt >mess2.txt = stdout
"You will see only the commands that make executed."
yes I noticed that.
Nicolas:
Do you have a working example on your end?
Post a reply to this message
|
|