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
<2014>
2015
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
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|