

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name Learn more about bidirectional Unicode charactersĪctive Internet connections (servers and established)

To review, open the file in an editor that reveals hidden Unicode characters. [4d ***.***.***.***:***** ***.***.***.This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. While IFS= read -r line &3 # write our line to whichever file is open on FD3 I want to redirect the output of the command tcptrack -i wlp3s0 to a log file every 1 second.įor that I found this script: #!/usr/bin/env bashįile="file_$((SECONDS / 10))0.txt" # calculate our initial filenameĮxec 3>"$file" # and open that first fileĮxec 4|sudo -S tcptrack -i wlp3s0) # also open a stream coming from nc on FD #4
