netcat is not available in our Linux prod environment for security reasons. I'm trying to write/read short text messages into a port for logging. Write to port on worker nodes read on logger node. netcat would do the job Is there a way to do the same on Linux using Python?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Thank you for replies. I ended up writing my own scripts.
netcat_reader.py (run it in loggerhost123):
netcat_writer.py (run it on reporting nodes)
I use this at work for some situations where i need to get a message from a network node. hopefully it will help you. you will need to adapt this to your needs. i wont do all the work for you but I will give you the right direction.
i made you a script, save this, chmod it and make it executable. And run it. This should work for you. Ping me if you have questions.