3 ms·
I solved that problem some time ago with netcat, „coproc nc -l -p PORT“. Makes bash listen to nc‘s stdout and let’s it write to it‘s stdin. But nc is not bash.
by baumschubser 2y ago
I solved that problem some time ago with netcat, „coproc nc -l -p PORT“. Makes bash listen to nc‘s stdout and let’s it write to it‘s stdin.
But nc is not bash.
- alganet 2y agoHere's my nc version, works on all shells: https://gist.github.com/alganet/140c7c12d1603c244a01 https://gist.github.com/alganet/140c7c12d1603c244a01 nc is almost everywhere, you can count on it. Ultimately, this is a toy, but it can be handy. I originally made it to attempt using for serving config for networked debian unattended installations[1] while automating VM creation, but never went that far. [1]: https://debian-handbook.info/browse/en-US/stable/sect.automated-installation.html https://debian-handbook.info/browse/en-US/stable/sect.automa...
- herewulf 2y agoYou can't count on nc being installed but you can count on it being installable. That's a problematic distinction in some situations.