I would like to check port connections with
nc and forward the result to a text file.
stdout works fine.
stderr is empty, if you don't use
-v (which I dont want), so I would like to configure the error output like
Servername: no connection
nc is version v1.10-41+b1.
Here's the command
nc -z -G 5 $Servername $Portname >> telnet_log.txt 2>&1