I would like to write a shell for an interactive CLI program (Asterisk CLI).
Basically, I need to maintain interaction with the CLI (including tabs), but I want to filter out the Asterisk output to show only lines matching this pattern.
I tried the select () based approach using popen.popen4 and put the asterisk stdout_and_stderr and sys.stdin in read_fs, but it didn't seem to work.
Can anyone give me some good recommendations?
Thanks a lot Andrea
source
share