Vladimir Marek wrote: > > > something | tee -a $mail_msg_file >> $LOGFILE > > > > > > instead of using exec redirection ? But that's probably out of the scope > > > of bug 481 ... > > > > That's on my ToDo list for the "nightls.sh" cleanup. > > The correct fix would be to use ksh93 and then use the stuff described > > in > > http://www.opensolaris.org/os/project/shell/shellstyle/#use_dynamic_file_descriptors > > to open the log file once and then write to it (instzead of generating > > an |open()|/write()|/close()|-sequence for each redirection). > > Nice link!
Note that the idea is to _avoid_ using fixed descriptor numbers in shell scripts (which won't work well with loadable functions anyway since there is no way to avoid fd number collisions). ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL <currently fluctuating> (;O/ \/ \O;)