I am doing a telnet connection to the Linux device (using c# code) and execute some commands and in which the command has more than 50 characters. The command is been executed successfully however the telnet response contains a \r\n after ~65 characters which cause the issue.
The script is expecting the response as full command in one line and the output of the command in the next line. However I am getting something like below:
command sent: /root/supplicants/wpa_cli -i p2p0 p2p_peer 00:11:22:33:44:55
Response: /root/supplicants/wpa_cli -i p2p0 p2p_peer 00:1 1:22:33:44:55 00:11:22:33:44:55
How to fix this issue? Why is it adding the \r\n after certain characters?