Open nigilan opened 4 years ago
exec() will append '\n' to your executing cmd, if you want avoid this behavior, you can add 'ors' option(defualt '\n') in your connect params, Unfortunaly. when you do this, you will login fail. because ors(default '\n') also use at login process. maybe you should change the source code
@wensonH @nigilan maybe have any PRs that fix this issue?
I moved to 'net' module from telnet-client.
I am having this piece of code for sending commands to a machine.
While the console is giving me the expected output I need
aa 23 64 cd 00 0e 09 a0 a2 06 41 42 43 44 45 0d
, when I watch the data being sent in wireshark it is different likeef bf bd 23 64 ef bf bd 00 0e 09 ef bf bd ef bf bd 06 41 42 43 44 45 0d 0a
.Any idea why the data is changed after it went through .exec(). Any suggestions will be helpful, thanks in advance.