Problem in wait statement

view story

http://www.unix.com – Iam having a script which is used to load users and dumpfile in any given schema.Iam trying to autolog the script and have added two fucntion in it. Code: function init_stdout_redirect {     OUT_LOG=$1     OUT_PIPE=$(mktemp -u)     # Create the output pipe     mkfifo $OUT_PIPE     # Save stdout and stderr as 3 and 4     exec 3>&1 4>&2     # Tee the output pipe into the log file     tee -a $OUT_LOG < $OUT_PIPE >&3 &     # Save tee's pid     TEE_PID=$!   &nbsp (HowTos)