Linux: Capture output of an already running process ( in pure C! )

前端 未结 2 1546
轮回少年
轮回少年 2021-02-10 17:16

My situation is the following: I\'ve got a lot of small gizmos ( pretty close to routers, not exactly but anyway that\'s irrelevant) ; they are running a bare-bones MIPS-based L

2条回答
  •  抹茶落季
    2021-02-10 17:32

    Have you tried driving the serial port with a kermit script? I would probably forgo trying to insert a more clever proxy on the device and just try and drive the existing interface.

    If you really want to get it on the device, you may be able to look at the source to something like screen or kermit to get a sense of how they interact with ttys.

提交回复
热议问题