EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: Multiple layers of DB templates?
From: "Gregory, Ray via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 2 Oct 2023 18:22:59 +0000

Hi,

 

I recently encountered an error when running the EPICS database for a soft IOC:

 

Error: syntax error

   at or before "substitute" in file "db/bl201-UBMatrixAxes.db" line 501

 

I was trying to nest template files using the substitute command. The error I encountered was essentially the same error described in this Tech-Talk question:

 

https://epics.anl.gov/tech-talk/2016/msg00642.php

 

I eventually found that my .template file had CRLF line endings (I am running the IOC under Linux and used the ‘file’ command to check this). After I changed the line endings to be standard Linux line endings (using the dos2linux command), I no longer received this error and was able to use nested .template files.

 

I’m hoping this information will help someone else with a similar issue, so I’m mentioning it here. I couldn’t figure out how to add a reply to the archived message from 2016.

 

Thanks,

 

Ray

 

Ray Gregory

Oak Ridge National Laboratory

 

 


Navigate by Date:
Prev: Re: preventing changing an EPICS motor's commanded position Johnson, Andrew N. via Tech-talk
Next: RE: PVA connection problem [SEC=UNOFFICIAL] STARRITT, Andrew via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: RE: preventing changing an EPICS motor's commanded position Goetze, Kurt via Tech-talk
Next: DBRecord <-> PVRecord data exchange Ignacio Arriagada via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
ANJ, 04 Oct 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·