DOS: Send a Message to a Listening Port via MATLAB

I am running win7. Not a "pure" mathlab question, but I hope someone can help.
I have a third party application running on my machine. It is listening on port X for the message "STOP", which will cause the 3rd party app to shut down.
I wish to use system.m to pass this message to the app. How can I do this? I suspect this requires knowing the correct command line inputs.
thank you

 採用された回答

Matlab2010
Matlab2010 2012 年 4 月 30 日

0 投票

telnet via system.m

1 件のコメント

Walter Roberson
Walter Roberson 2012 年 4 月 30 日
That will not work by itself. In order to get that to work, you would need to use some mex code that did a process open of telnet: otherwise you will not be able to connect to the input of the telnet process.

サインインしてコメントする。

その他の回答 (2 件)

Jan
Jan 2012 年 4 月 25 日

0 投票

There are several TCP/IP communication programs in the FEX: FEX: Search TCPIP. This is not the system command, but they can send a message to a specific port.
Walter Roberson
Walter Roberson 2012 年 4 月 25 日

0 投票

http://nmap.org/ncat/ which is a reboot of the older netcat program.

カテゴリ

ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by