How to login to a telnet session with Matlab.

7 views (last 30 days)
Hi, I am new to Matlab. I am trying to access a TCPIP connection for data. First I need to login to an IP nad port, then I need to type "LOGIN" to get the data going which is my problem.
I can make the tcpobject and I have tried fprintf(t, 'LOGIN') to type it in, but it does not work. I have tried the fwrite function without success.
I am using tcpip and other similar sites as my source.
Thank you.
  2 Comments
Behnam
Behnam on 9 Sep 2019
Michael, have you find any solution for this?
Walter Roberson
Walter Roberson on 9 Sep 2019
fwrite(t, 'LOGIN\n')
However, I would recommend that you use ssh() instead of tcpip() if you can.

Sign in to comment.

Answers (0)

Categories

Find more on Software Development Tools in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!