Catching a direct redirect to /dev/tty

后端 未结 4 2177
抹茶落季
抹茶落季 2021-01-05 23:29

I\'m working on an application controller for a program that is spitting text directly to /dev/tty.

This is a production application controller that must be able to

4条回答
  •  青春惊慌失措
    2021-01-05 23:52

    The classic solution to controlling an application like this is Expect, which sets up pseudo-terminals, does logging, and drives the controlled application from a script. It comes with lots of sample scripts so you can probably just adapt one to fit your needs.

提交回复
热议问题