34 lines
634 B
C++
34 lines
634 B
C++
/*exampleDatabaseMain.cpp */
|
|
/**
|
|
* Copyright - See the COPYRIGHT that is included with this distribution.
|
|
* EPICS pvData is distributed subject to a Software License Agreement found
|
|
* in file LICENSE that is included with this distribution.
|
|
*/
|
|
/**
|
|
* @author mrk
|
|
*/
|
|
|
|
/* Author: Marty Kraimer */
|
|
|
|
#include <stddef.h>
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
|
|
#include "epicsExit.h"
|
|
#include "epicsThread.h"
|
|
#include "iocsh.h"
|
|
|
|
int main(int argc,char *argv[])
|
|
{
|
|
if(argc>=2) {
|
|
iocsh(argv[1]);
|
|
epicsThreadSleep(.2);
|
|
}
|
|
iocsh(NULL);
|
|
epicsExit(0);
|
|
return(0);
|
|
}
|
|
|