c++ - What are the differences between running a shell (e.g., sh) through a TTY, PTY, or execv() using pipes? -


what differences between running shell (e.g., sh) through tty, pty, or execv() using pipes?

i've wondered differences between invoking shell, e.g., sh through tty (terminal) or pty(pseudoterminal), or c-program using execv() , pipes stdin/stdout/stderr?

in particular, i'm interested in differences between tty/pty , c-program, since tty , pty should behave identical?

invoking sh through tty/pty, (pseudo)terminal interpret/convert input before sending sh. likewise, echoes output sh screen of terminal? stdout of (pseudo)terminal?

are differences between tty/pty , c-program tty/pty acts "layer" of communication between process sending/receiving data sh, or there other differences?

in short, need isatty or fstat see difference.

take here:

https://stackoverflow.com/a/7601564/1336858


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -