Log statistics to a file instead of stdout

runlim

  • A tool for sampling and limiting time and memory usage of a program and its child processes using the proc file system on Linux.
    More information: <http://fmv.jku.at/runlim>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

runlim --output-file={{path/to/file}} {{command}} {{command_arguments}}

click the source code to copy install runlim on any operating system with command-not-found.com