Trying to route all my output in a bash script, including set -x output to a log file during a batch run (really like to see the output when I'm around as well). I currently use the following early in the script and all output is routed to the file in variable: exec &>$TRC_DBG_LOG Does a decent job, but I would really like to use something like the script utility that will keep a log for me (listed in advanced bash programming guide so hoping it is around), and let me watch standard out when I'm there to watch. I have a hack to use tee, but messing with the --pid= stuff gets flaky and seems like a hack. Would like to utilize the Unix script utility in my cygwin bash scripts but I can find it, so I can get out the challenges with "exec > ...". So: a) Once I use exec .. as in above snippet, can it be shut off in same script (my thought is no), thus b) is there a unix script utility that I can use under cygwin, and if so where? A cygwin script utility binary is preferred and I'd smile, but would accept source. Regards, Perry -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
