bash - Why does tee wait for all subshells to finish? -
i have server script runs mysqld , forks continue running. example:
./mysqld <parameters> & echo "parent runs next line in script." <do more stuff>
why tee wait child process end before ends itself?
edit:
for example, following hangs:
./myscript | tee -a logfile.log
because can't sure has tee'd output if child process still running.
Comments
Post a Comment