Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: