Results 1 to 2 of 2
Program A calls program B
I redirect A's output to program C
What to do to see B's output on the screen rather than pipe it to C?
I write ...
- 04-20-2008 #1Just Joined!
- Join Date
- Apr 2008
- Posts
- 1
bash redirection
Program A calls program B
I redirect A's output to program C
What to do to see B's output on the screen rather than pipe it to C?
I write A and C
B is external
B needs input, so I cannot pipe all B's output to C and make C writing B's output on the screen.
- 04-20-2008 #2
Why not have A call B first, then redirect its output to C, then call C?
Basically, a child process inherits the redirections of its parents, so once you've redirected A somewhere, there's no safe way to get B back to the terminal.DISTRO=Arch
Registered Linux User #388732


Reply With Quote