It’s simple
$ timeout 1 bash -c '< /dev/tcp/google.com/80'
$ echo $?
0
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website