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  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: dbLoadTemplate and includes
From: Emmanuel Mayssat <[email protected]>
To: "J. Lewis Muir" <[email protected]>
Cc: epics <[email protected]>
Date: Thu, 02 Apr 2009 14:57:39 -0700
Mark, Lewis,

This idea is to have several substitution files for maintenance purpose
instead of a huge one. But now, I realize that I could generate that
master_substitution_file when I run 'make' in my msi template
directory...

Thank you ...

Note: I was hoping that the include directive would work. It apparently
doesn't.

--
Emmanuel





On Thu, 2009-04-02 at 17:47 -0400, J. Lewis Muir wrote:
> On 4/2/09 5:23 PM, Emmanuel Mayssat wrote:
> > Hello all,
> > 
> > I have several substitution files, which I could load with a series of
> > dbLoadTemplate. Is there a way to have only one dbLoadTemplate hand have
> > a substitution file such as follow:
> > 
> > cat master_substitution_file<<EOT
> > include substitution_file_1
> > include substitution_file_2
> > include substitution_file_3
> > EOT 
> > 
> > and in stcmd
> > 
> > dbLoadTemplate("$PATH/master_substitution_file")
> > 
> > Well, this doesn't seem to work.
> > is there a way to include dbTemplate/substitution together?
> 
> Hi, Emmanuel.
> 
> You can concatenate a bunch of substitutions files into one big
> substitutions file using the UNIX cat command and shell redirection.  Is
> this what you're wanting or are you wanting to do this at run-time?
> 
> For example:
> 
> $ ls -1
> ipUnidig.substitutions
> motor.substitutions
> scanParms.substitutions
> $ cat *.substitutions > all.substitutions
> 
> Move all.substitutions to the desired location (typically the same
> directory as st.cmd).
> 
> Then in st.cmd:
> 
> dbLoadTemplate("all.substitutions")
> 
> Lewis
> 


References:
dbLoadTemplate and includes Emmanuel Mayssat
Re: dbLoadTemplate and includes J. Lewis Muir

Navigate by Date:
Prev: Re: dbLoadTemplate and includes J. Lewis Muir
Next: ai record with dtyp of "raw soft channel" Patrick Thomas
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: dbLoadTemplate and includes J. Lewis Muir
Next: ai record with dtyp of "raw soft channel" Patrick Thomas
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·