Hacker News new | ask | show | jobs
by oso2k 41 days ago
My favorite trick with this feature is pairing it a timeout

   # Connection successful:
   $ timeout 1 bash -c 'cat < /dev/null > /dev/tcp/google.com/80'
   $ echo $?
   0