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 : [EMAIL PROTECTED] |
-- /(   )\  | WWW    : http://ronald.bitfreak.net/ |
--  ^^-^^   |    *** Warning: Unix Addicted ***    |
---------------------------------------------------'


_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to