I have a shell program which calls a perl program.
I am running the shell program with command;
$ ksh -x <prog_name>
Inside the shell program, I am calling perl with warnings.
I want to capture the entire output as it comes on screen.
The command I tried is:
$ ksh -x <prog_name> > `date +%Y%m%d`.log
However, the above does not generate the debug shell messages and perl warnings inside the perl program.
How can I achieve the same?