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

Subject: Re: Getting data from a shell script into an ioc
From: Pierrick M Hanlet via Tech-talk <[email protected]>
To: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Sat, 23 Feb 2019 13:27:35 +0000
Hi Bo,
I have frequently used the aSub record to do such things.
Cheers,
Pierrick


On 02/23/2019 04:34 AM, Sebastian Marsching via Tech-talk wrote:
> Hi,
>
>> I was wondering if it is possible to use the streamDevice framework 
>> to call a shell script on the IOC host and then process the output. 
>> That would be a very easy way to make simple connections to existing 
>> programs.
>>
>> What would be the best approach?
>>
> I know I am late to the party, but I still wanted to point you to a 
> solution that might fit exactly what you originally asked for.
>
> The Execute device support (https://github.com/KIT-IBPT/epics-execute) 
> does exactly that: It allows you to run a shell script (or any 
> executable for that matter) and makes the exit code and output 
> available in EPICS records.
>
> Whether this is the best solution for you, or the other solutions 
> (socket server with StreamDevice, Python scripts with pyDevSup) are 
> better for you of course depends on the details of your requirements.
>
> Cheers,
> Sebastian
>

-- 
Pierrick Hanlet
Fermi National Accelerator
Accelerator Front End Controls
+1-630-840-6577 -- lab
+1-312-687-4980 -- mobile

"Whether you think you can or think you can't, you're right" -- Henry Ford


References:
Getting data from a shell script into an ioc Bo Jakobsen via Tech-talk
Re: Getting data from a shell script into an ioc Sebastian Marsching via Tech-talk

Navigate by Date:
Prev: Re: Getting data from a shell script into an ioc Sebastian Marsching via Tech-talk
Next: EPICS Base compile failure on Windows-x64 Carl Willis 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Getting data from a shell script into an ioc Sebastian Marsching via Tech-talk
Next: Re: Getting data from a shell script into an ioc Konrad, Martin 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  <20192020  2021  2022  2023  2024 
ANJ, 24 Feb 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·