Hi, You could run the script in a subshell:
#!/bin/ksh ( /your_script.sh ) 1>/log On 12/22/07, Matty <matty91 at gmail.com> wrote: > Howdy, > > I am modifying a lengthy bash script, and would like to globally configure > stdout to go to the console as well as a log file. Is there an easy way to do > this from a single location in a shell script? I really don't want to have to > add "| tee log" to each print statement. > > Thanks for any insight, > - Ryan > -- > This message posted from opensolaris.org > _______________________________________________ > shell-discuss mailing list > shell-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/shell-discuss > -- _________________________________/ sengork.blogspot.com /????