Gen 8.6 UNIX/Linux CSE logs & work files in single directory
search cancel

Gen 8.6 UNIX/Linux CSE logs & work files in single directory


Article ID: 268892


Updated On:




With the Gen 8.6 UNIX/Linux CSE starting the CSE iefmd is a manual process.
One thing to note is that the launch directory where the iefmd is started from determines where the user directories are created during CSE usage i.e. it is that launch directory that is used to create the USERID sub-directories when model work is done. 
When the CSE is started on Windows using the service CSESvcMD subsequent USERID directories are always created under the directory pointed to by the environment variable IEF_WORKINGDIR which is where the CSE iefmd log files are also already stored.
This article covers how to create a script to ensure that similar behaviour occurs on UNIX/Linux with the manual iefmd startup.


The script can be created in any directory but to keep all configuration files together it is suggested that it is created in the configuration directory pointed to by the environment variable IEF_CONFIGDIR i.e. directory "cse/cfg" under the CSE installation directory e.g. full path /opt/Gen/CSE/cse/cfg.
The suggested name for the script is and the contents are as follows:
# Check iefmd is not already running.
if pgrep -x "iefmd" > /dev/null
   echo "The CSE iefmd is already running"
  # Assuming it already exists backup the directory IEF_WORKINGDIR to keep a backup copy of log files and recreate it.
  if [ -d "$IEF_WORKINGDIR" ]; then
    mv $IEF_WORKINGDIR "$IEF_WORKINGDIR"_$(date +"%b%d-%Y-%H%M%S")
  # Also need to cd to the IEF_WORKINGDIR directory to ensure each user directory (e.g. ENCYADMN) is created there.
  # Otherwise whatever is the current directory when iefmd is executed will end up being where the user directory is created.
  $IEFCSGEN/iefmd /mdini=$IEF_CONFIGDIR/iefmd.ini /mderr=$IEF_WORKINGDIR/iefmd.log &

The relevant Gen 8.6 documentation references have now been updated to reflect the above advice e.g. Start a CSE on UNIX or Linux

Additional Information

Related knowledge hub article: Gen 8.6 Linux CSE knowledge hub