more pipe questions
- From: Ronald Bultje <rbultje ronald bitfreak net>
- To: gtk-list gnome org
- Subject: more pipe questions
- Date: Thu, 15 Feb 2001 02:53:02 +0100
I remember this question being asked before, but deleted it, I think...
If I write data to a file (continuously, a logfile kinda thing), how can I
check this file for "being updated"? I now use a read-pipe and popen("cat
file", "r"); but there's probably a better way.
Or is it maybe possible to open this logfile "continuously" so that any
data written to it can be caught at once?
Besides that, if I put this popen("cat file", "r"); in a while-loop, my
tasklist shows a [cat <defunc>] and the program stops there...... Any clue
why?
Ronald
--
---------------------------------------------------.
-- .-. | Ronald Bultje |
-- /V\ | Running: Linux 2.4.1 and OpenBSD 2.8 |
-- // \\ | E-mail : rbultje ronald bitfreak net |
-- /( )\ | WWW : http://ronald.bitfreak.net/ |
-- ^^-^^ | *** Warning: Unix Addicted *** |
---------------------------------------------------'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]