Hi,
Anyone know how to use exec to direct standard out to a file and also to the screen.
If I do :
exec > $LOGFILE
It goes to logfile but I get nothing to screen,
i've tried
exec > $LOGFILE | tee
But no luck. It's a long script so i'd rather not have to | tee for every echo statement if I can help it.
Any assistance is appreciated.
Thanks,
M
Anyone know how to use exec to direct standard out to a file and also to the screen.
If I do :
exec > $LOGFILE
It goes to logfile but I get nothing to screen,
i've tried
exec > $LOGFILE | tee
But no luck. It's a long script so i'd rather not have to | tee for every echo statement if I can help it.
Any assistance is appreciated.
Thanks,
M