Search code examples
linuxterminalcurses

how to save output of tcptrack into a text file


How to dump output of tcptrack into a text file? I have tried using grep and cut but the output screen of tcptrack is made with curses library and changes dynamically.


Solution

  • Edit the source code and remove the ncurses library and simply use printf instead of printw or simply write data to a file.