I want to have a shell script redirect stdout of a child process as follows
- Redirect stdout to file
- Display process output in real time
I know I can do something like
But it does not display stdout in real time. For example, if the child was
#!/bin/sh echo 1 sleep 1 echo 2
The user will see both "1" and "2"
Mike source share