About 522,000 results
Open links in new tab
  1. How do I make a Makefile to log both command and its output to …

    Mar 1, 2019 · 1 It is a default behaviour of make to print both the command and its output to stdout. An obvious solution is to just have myrule: mycommand but then call make myrule > …

  2. makefile - Error log of make command in Linux - Stack Overflow

    Apr 28, 2010 · 22 Try doing: make >&log the & after the > tells the shell to dump both stdout and stderr to the log. This can also be used with pipes.

  3. How do I capture all of my compiler's output to a file?

    Feb 20, 2017 · script gnu_make.log -c "make" This file may contain line termination characters in dos format, to remove that the following command may be used.

  4. How to log make output without buffering from stdout and stderr

    May 7, 2015 · What I tried (from a ksh script) is: make -k > build.log 2> build.log This results in a single log file but the problem is that the streams are buffered and so the result in the log file is …

  5. makefile - Log invoked commands of make - Stack Overflow

    Mar 10, 2010 · Is there a way to log the commands, make invokes to compile a program? I know of the parameters -n and -p, but they either don't resolve if-conditions but just print them out. …

  6. Is there a way to have a build log when running 'make'?

    3 I need/want to have the whole build log when compiling a tool. The tool uses autotools. I tried the most obvious way $ make > make.txt but that just gave the very end of the build to …

  7. python - Create a log file - Stack Overflow

    I'm looking to create a log file for my discord bot which is built with python. I have a few set of commands which output the console through the print command, I have added a date and …

  8. make a log file - Unix & Linux Stack Exchange

    Apr 25, 2011 · Is there any way to make a log file for maintaining some data in /var/log/ with the help of some library function or system call in c language in linux. And I also want to know the …

  9. How to create log file from my bash script - Stack Overflow

    Jul 7, 2021 · How can I make a log file from my bash script? I'm leaving the script without the options, all I want to know is how I can register the script being used and make a separate .log …

  10. log output (stdout) from within make file - Unix & Linux Stack …

    Feb 17, 2024 · How do I send the output (stdout) to a log file from WITHIN the make file? I am NOT interested in a command line solution such as "make > build.log". Listed below is my …