Experimental Physics and Industrial Control System
|
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
|
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
- Replies:
- Re: Getting data from a shell script into an ioc Pierrick M Hanlet via Tech-talk
- References:
- Getting data from a shell script into an ioc Bo Jakobsen via Tech-talk
- Navigate by Date:
- Prev:
Re: GNU Screen or procServ on ARM? Mark Rivers via Tech-talk
- Next:
Re: Getting data from a shell script into an ioc Pierrick M Hanlet 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
2023
2024
- Navigate by Thread:
- Prev:
Re: Getting data from a shell script into an ioc Kasemir, Kay via Tech-talk
- Next:
Re: Getting data from a shell script into an ioc Pierrick M Hanlet 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
2023
2024
|
ANJ, 23 Feb 2019 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|