Using telnet in a C Program

后端 未结 5 409
情歌与酒
情歌与酒 2020-12-09 12:53

I am working on a robot automation project and I have run into a road block. To control the robot, one needs to connect with it wirelessly via telnet and send commands throu

5条回答
  •  青春惊慌失措
    2020-12-09 13:27

    I would be:

    • writing some simple shell scripts containing the telnet interractions written as here documents.
    • using a .telnetrc file in your home directory to control aspects of your telnet session, e.g. crmod
    • calling the script using system calls.

    This way your turnaround time to change your interractions with the robot won't involve having to recompile your programm all the time.

    BTW This sounds like fun.

    HTH.

    cheers,

    Rob

提交回复
热议问题