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: using macros in Action, Execute Command
From: Paul Sichta via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Fri, 17 Mar 2023 17:19:13 -0400
Using phoebus, I used an action button and added an Execute Command.  My macro will not work when used in the Command line.  The macro will work in action type WritePV,  or as a PVname for an object on the display.

Example: I add to my environment before starting phoebus,  export myLS=ls
In the action command line I use       $(myLS)  

When I run the action I get an error
Cannot run program "$myLS" (in directory  blah...); error=2, No such file or directory

If I simply use    ls    in the command it works fine.
The help, about,  inspect environmental variables it shows:  myLS = ls

Is there a way to use macros from the user's environment on these Execute Commands?
In particular, I want to use a macro to be a directory path on my system

Regards,
-ps

Replies:
RE: using macros in Action, Execute Command Zhang, Tong via Tech-talk

Navigate by Date:
Prev: Re: Problem with PVA group def using .json file Ignacio Arriagada via Tech-talk
Next: Phoebus: using macros in Action, Execute Command Paul Sichta 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: The help command for VxWorks shell Di Wang via Tech-talk
Next: RE: using macros in Action, Execute Command Zhang, Tong 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, 20 Mar 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·