exec and file descriptors

Hi,
I speak and write english more or less, so I hope my asking be clear.

:slight_smile:

In the company I am working, they are using control-m software to lunch
shell scripts.

So i put this command in all shell scripts:

export LOGFILE_tmp=$PRODUC_DATA/tmp/${SCRIPT}_${PAIS}_`date +'%Y%m%d'`.log

export LOGFILE_debug=$PRODUC_DATA/tmp/${SCRIPT}_${PAIS}_`date +'%Y%m%d'`.log.debug

  exec 1>>$LOGFILE_tmp
  exec 2>>$LOGFILE_debug

So all displays, standard output and standard errores, writing in the LOGFILE*.

But this no display in the contol-m log.
So, is there anybody know waht I have to do if I want when the shell script end, write LOGFILE_tmp in the control-m log?????

please, write me to: XXX
And if there anybody speaks spanish, tell me.

Thanks a lot
:wink: