Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...