Can I write a python program that read from a piped stdin and keyboard?
What I mean? I want to be able to use it in this way:
tail -f LOGFILE | myscript.py
see the log lines appearing in the screen and type commands with the keyboard?
This sounds like 2 stdin and that confuse me. Is it possible or is it conceptually wrong?
Thanks!