Currently I am redirecting STDERR and STDOUT to a log file by doing the following
{
My KSH script contents
} 2>&1 | $DEBUGLOG
Problem is the STDERR & STDOUT do not have any date/time associated.
I want this to be something that i can embed into a script opposed to an argument I use when i run the script because non-technical users are running these so I have to keep what they are doing to a bare minimum.
EDIT: Needs to work on RedHat, Solaris & HP-UX