4 ms·
+1 on this. Would love to see this using bash built-ins if possible. /dev/tcp might be a start.
by sshd 4y ago
+1 on this. Would love to see this using bash built-ins if possible. /dev/tcp might be a start.
- BenjiWiebe 4y agoI believe the issue is that bash has no built-in method for creating a listening socket / accepting connections. /dev/tcp can only connect to a listening socket, not create one.
- rascul 4y agoThere's a loadable for that. http://git.savannah.gnu.org/cgit/bash.git/tree/examples/loadables/accept.c http://git.savannah.gnu.org/cgit/bash.git/tree/examples/load...
- arjvik 4y agoThat only works for outgoing connections, sadly
- EddySchauHai 4y agoI definitely want to try work this out but I couldn't find much in the way of documentation, I'll give it a go when I have more time :)