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: "J. Lewis Muir" <[email protected]>
To: Emmanuel Mayssat <[email protected]>
Cc: epics <[email protected]>
Date: Thu, 02 Apr 2009 17:47:13 -0400
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

-- 
J. Lewis Muir
Software Engineer
IMCA-CAT/CARS

Replies:
Re: dbLoadTemplate and includes Emmanuel Mayssat
References:
dbLoadTemplate and includes Emmanuel Mayssat

Navigate by Date:
Prev: RE: dbLoadTemplate and includes Mark Rivers
Next: Re: dbLoadTemplate and includes Emmanuel Mayssat
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 Mark Rivers
Next: Re: dbLoadTemplate and includes Emmanuel Mayssat
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 ·