these days I try to communicate with a tcp device: I need to write a command to a specific port and then read its answer from the same port to get its data - how can I perform that?
I read about the command line redirector
Code: Select all
echo ThisCommand > /dev/tcp/ServerIP/ServerPort
Or are there any other standard tcp comminication commands to be used in bash scripts?
Thanks a lot in advance