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  <20142015  2016  2017  2018  2019  2020  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  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: ASYN port driver for file IO?
From: Torsten Bögershausen <[email protected]>
To: Ralph Lange <[email protected]>, EPICS Tech-Talk <[email protected]>
Date: Wed, 18 Jun 2014 08:43:05 +0200
Hej Ralph,
thats sounds too interesting to keep quite.

What, more specific,  do you want to do ?

Read a specific file line-by-line ?
Do you need all the lines, or only a specifc one ?

Do you want to read the file multiple times ?
(I think so)

In this case you could write a little daemon,
which listens on a TCP socket,
waits for some event, reads the file, filters out the line,
and sends the interesting stuff back.

I am thinking about using netcat (in short nc) and some shell/grep/sed stuff together.

Do you want to share more details ?
/Torsten

On 6/17/14 14:26, Ralph Lange wrote:
All,

I was wondering if anyone has written an ASYN port driver for file read access.
Something that on every read returns a (run-time) configurable line of a (start-up) configurable file, for example.

Intended use: Read stuff from the /proc file system using StreamDevice.

Thanks for any hints,
~Ralph


Replies:
Re: ASYN port driver for file IO? Ralph Lange
References:
ASYN port driver for file IO? Ralph Lange

Navigate by Date:
Prev: Re: EDM XY Graph Zenon Szalata
Next: Re: ASYN port driver for file IO? Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: ASYN port driver for file IO? Stephen Beckwith
Next: Re: ASYN port driver for file IO? Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·