diff --git a/src/makeBaseApp/top/exampleBoot/ioc/README@Common b/src/makeBaseApp/top/exampleBoot/ioc/README@Common index 13d5f4884..f6dc23be8 100644 --- a/src/makeBaseApp/top/exampleBoot/ioc/README@Common +++ b/src/makeBaseApp/top/exampleBoot/ioc/README@Common @@ -1,7 +1,9 @@ To start the ioc from this directory execute the command - ../../bin/_ARCH_/ st.cmd -You may need to change the name of the .dbd file given in -st.cmd's dbLoadDatabase command before starting the ioc. +Alternatively make the st.cmd file directly executable with + chmod +x st.cmd +and check the executable name on the first line of the st.cmd file +You may need to change the name of the .dbd file given in the +st.cmd's dbLoadDatabase() command before starting the ioc. diff --git a/src/makeBaseApp/top/exampleBoot/ioc/st.cmd@Common b/src/makeBaseApp/top/exampleBoot/ioc/st.cmd@Common index d72778400..605ad505d 100644 --- a/src/makeBaseApp/top/exampleBoot/ioc/st.cmd@Common +++ b/src/makeBaseApp/top/exampleBoot/ioc/st.cmd@Common @@ -1,9 +1,17 @@ -dbLoadDatabase("../../dbd/example.dbd",0,0) -registerRecordDeviceDriver(pdbbase) +#!../../bin/_ARCH_/_IOC_ +## The names of the binary above and .dbd file below will be incorrect +## unless you used the same names for the ioc and the app directory. +dbLoadDatabase("../../dbd/_IOC_.dbd",0,0) + +registerRecordDeviceDriver(pdbbase) + dbLoadRecords("../../db/dbExample1.db","user=_USER_Host") dbLoadRecords("../../db/dbExample2.db","user=_USER_Host,no=1,scan=1 second") dbLoadRecords("../../db/dbExample2.db","user=_USER_Host,no=2,scan=2 second") dbLoadRecords("../../db/dbExample2.db","user=_USER_Host,no=3,scan=5 second") dbLoadRecords("../../db/dbSubExample.db","user=_USER_Host") + iocInit() + +## Start sequence programs here, if there are any #seq sncExample,"user=_USER_Host"