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  <20202021  2022  2023  2024  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  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line
From: "Kasemir, Kay via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, "Pietryla, Tony" <afp at anl.gov>
Date: Tue, 1 Dec 2020 15:53:03 +0000
> I am trying to open a CSS Phoebus screen and I want to pass the value of a macro from the command line at startup. How can I do this?
 

Amongst your options:

Add the file and macros to the command line,
phoebus.sh -resource file:/path/to/file?MACRO1=value+1&MACRO2=ab


Or create predefined macros in a my_settings.ini file:
 org.csstudio.display.builder.model/macros=<EXAMPLE_MACRO>Value from Preferences</EXAMPLE_MACRO>
.. and then start with that settings file:
phoebus.sh -settings /path/to/my_settings.ini

Or define the macro as environment variables, since macros fall back to them
export EXAMPLE_MACRO=SomeValue
export ANOTHER_MACRO=SomeOtherValue
phoebus.sh

Replies:
Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line Pietryla, Tony via Tech-talk
References:
How do I pass a macro to a CSS Phoebus screen at startup from the command line Pietryla, Tony via Tech-talk

Navigate by Date:
Prev: Re: Supported 'Scopes? Hu, Yong via Tech-talk
Next: Re: Looking for help on PMD101 EPICS driver Mark Rivers 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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: How do I pass a macro to a CSS Phoebus screen at startup from the command line Pietryla, Tony via Tech-talk
Next: Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line Pietryla, Tony 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  <20202021  2022  2023  2024 
ANJ, 07 Dec 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·