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: Wang Xiaoqiang via Tech-talk <[email protected]>
To: Bo Jakobsen <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 14 Jan 2019 10:01:56 +0100

Hi,

An existing message stream is what is required by SteamDevice. It does not launch the stream server in any means.

An aSub record would just work. In the subroutine you can launch the script and parse its output.

If you are not fixed to database based IOC, a PCASpy server works equally well. Here is an example close to what you are doing
https://pcaspy.readthedocs.io/en/latest/tutorial.html#example-2-interface-to-any-shell-command

Best
Xiaoqiang

On 1/14/19 9:25 AM, Bo Jakobsen via Tech-talk wrote:
Hi

I was considering to make a simple IOC to monitor our "queues" on a pc cluster. The status of the queue can be returned from a simple shell script.

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?

Best

     Bo


Replies:
Re: Getting data from a shell script into an ioc Kasemir, Kay via Tech-talk
References:
Getting data from a shell script into an ioc Bo Jakobsen via Tech-talk

Navigate by Date:
Prev: Getting data from a shell script into an ioc Bo Jakobsen via Tech-talk
Next: Re: Getting data from a shell script into an ioc Kasemir, Kay 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: Getting data from a shell script into an ioc Bo Jakobsen via Tech-talk
Next: Re: Getting data from a shell script into an ioc Kasemir, Kay 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, 14 Jan 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·