to collect logs from xterm window.
I am running a bash script on xterm wimdow. Now
i need to collect the logs from the xterm window.
system ("xterm $bash_script");
Now I need to put the contents on xterm to a log file.
Please let me know how to redirect xterm contents to a log file.