Hi all,
i have script wich has to use a logfile very often to store all information.
For the moment i use the 'normal' syntax echo "Whats going on" >> $logfile
I was thinking about opening a new output channel for shell (ksh)
exec 3> $logfile
and to echo all information into it with print -u3 "Whats going on"
But am not sure if i create more problems than i get advantages. As i
understood the output channel stays open all the time until i close it
explicitly with 'exec 3>&-' , actually this should save time during running
the script, but what happens when i am not able to close the channel in case
the script hangs,fails,aborts unexpected...
Are there any other things i have to care about?
Anybody using this ?
Any information on this are welcome
Thanx in advance
-jens-