/*==============================================================

  Abs: EPICS Main thread for the feedback simulator application

  Name: fbcksimMain.cpp

  Facility:  SLAC/LCLS

  Auth: 17-Mar-2000, Marty Krainer       (USERNAME)
  Rev:  dd-mmm-yyyy, Reviewer's Name     (USERNAME)

--------------------------------------------------------------
  Mod:
       23-may-2006 d. fairley
       26-Jul-2005, K. Luchini           (LUCHINI):
         added standard header 

==============================================================*/

/* Header files */
#include <stddef.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>

#include "epicsThread.h"
#include "iocsh.h"


int main(int argc,char *argv[])
{
    static const int    max_args=2;
    static const double nsec=0.2;

    if(argc>=max_args) {    
        iocsh(argv[1]);
        epicsThreadSleep(nsec);
    }
    iocsh(NULL);
    return(0);
}
