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 2023 2024 2025 | 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 2023 2024 2025 |
<== 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